mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-22 21:06:01 +01:00
Use consistent icons for web push notifications, same as web UI (#4426)
This commit is contained in:
parent
fdb65dcbee
commit
13bb1ddc7f
4 changed files with 3 additions and 3 deletions
|
@ -118,7 +118,7 @@ class Web::PushSubscription < ApplicationRecord
|
||||||
when :mention then [
|
when :mention then [
|
||||||
{
|
{
|
||||||
title: translate('push_notifications.mention.action_favourite'),
|
title: translate('push_notifications.mention.action_favourite'),
|
||||||
icon: full_asset_url('emoji/2b50.png', skip_pipeline: true),
|
icon: full_asset_url('web-push-icon_favourite.png', skip_pipeline: true),
|
||||||
todo: 'request',
|
todo: 'request',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
action: "/api/v1/statuses/#{notification.target_status.id}/favourite",
|
action: "/api/v1/statuses/#{notification.target_status.id}/favourite",
|
||||||
|
@ -131,11 +131,11 @@ class Web::PushSubscription < ApplicationRecord
|
||||||
can_boost = notification.type.equal?(:mention) && !notification.target_status.nil? && !notification.target_status.hidden?
|
can_boost = notification.type.equal?(:mention) && !notification.target_status.nil? && !notification.target_status.hidden?
|
||||||
|
|
||||||
if should_hide
|
if should_hide
|
||||||
actions.insert(0, title: translate('push_notifications.mention.action_expand'), icon: full_asset_url('emoji/1f441.png'), todo: 'expand', action: 'expand')
|
actions.insert(0, title: translate('push_notifications.mention.action_expand'), icon: full_asset_url('web-push-icon_expand.png', skip_pipeline: true), todo: 'expand', action: 'expand')
|
||||||
end
|
end
|
||||||
|
|
||||||
if can_boost
|
if can_boost
|
||||||
actions << { title: translate('push_notifications.mention.action_boost'), icon: full_asset_url('emoji/1f504.png'), todo: 'request', method: 'POST', action: "/api/v1/statuses/#{notification.target_status.id}/reblog" }
|
actions << { title: translate('push_notifications.mention.action_boost'), icon: full_asset_url('web-push-icon_boost.png', skip_pipeline: true), todo: 'request', method: 'POST', action: "/api/v1/statuses/#{notification.target_status.id}/reblog" }
|
||||||
end
|
end
|
||||||
|
|
||||||
actions
|
actions
|
||||||
|
|
BIN
public/web-push-icon_expand.png
Normal file
BIN
public/web-push-icon_expand.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
public/web-push-icon_favourite.png
Normal file
BIN
public/web-push-icon_favourite.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1 KiB |
BIN
public/web-push-icon_reblog.png
Normal file
BIN
public/web-push-icon_reblog.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 851 B |
Loading…
Reference in a new issue