Fix merge bugs

* we weren't notifying people when local polls were finished
 * lacked a full svg logo function
 * we were not parsing mentions due to a stray `&& false`, basically
 * removed some extra unneeded UI reducer code
This commit is contained in:
Darius Kazemi 2022-05-05 18:56:04 -07:00
parent 814ced2e26
commit 9d2f13a004
4 changed files with 6 additions and 12 deletions

View File

@ -103,4 +103,8 @@ module AccountsHelper
def svg_logo
content_tag(:svg, tag(:use, 'xlink:href' => '#hometownlogo'), 'viewBox' => '0 0 216.4144 232.00976')
end
def svg_logo_full
content_tag(:svg, tag(:use, 'xlink:href' => '#hometownlogo'), 'viewBox' => '0 0 216.4144 232.00976')
end
end

View File

@ -348,16 +348,6 @@ export default function compose(state = initialState, action) {
return state.set('is_changing_upload', true);
case COMPOSE_REPLY_CANCEL:
case COMPOSE_RESET:
return state.withMutations(map => {
map.set('in_reply_to', null);
map.set('text', '');
map.set('spoiler', false);
map.set('spoiler_text', '');
map.set('privacy', state.get('default_privacy'));
map.set('poll', null);
map.set('federation', state.get('default_federation'));
map.set('idempotencyKey', uuid());
});
case COMPOSE_SUBMIT_SUCCESS:
return clearAll(state);
case COMPOSE_SUBMIT_FAIL:

View File

@ -115,8 +115,8 @@ class PostStatusService < BaseService
DistributionWorker.perform_async(@status.id)
unless @status.local_only?
ActivityPub::DistributionWorker.perform_async(@status.id)
PollExpirationNotifyWorker.perform_at(@status.poll.expires_at, @status.poll.id) if @status.poll
end
PollExpirationNotifyWorker.perform_at(@status.poll.expires_at, @status.poll.id) if @status.poll
end
def validate_media!

View File

@ -65,7 +65,7 @@ class ProcessMentionsService < BaseService
def assign_mentions!
@current_mentions.each do |mention|
mention.save if mention.new_record? && ()
mention.save if mention.new_record?
end
# If previous mentions are no longer contained in the text, convert them