Jump to content

Social tools/Echo

From mediawiki.org

Social tools extensions have been progressing to eventually support Echo notifications for different events. Currently, only Challenge and SocialProfile support these so far.

Challenge

[edit]

Extension:Challenge has supported Echo notifications since 2e71b59b8a29655f8ab2adf0c187186d0ee3fa00 (April 2021) (see phab:T152887). (Gerrit change 680263)

Notifications are sent out whenever:

  • you are challenged by another user
  • whenever a challenge is accepted
  • whenever a challenge is rejected
  • whenever a challenge is won
  • whenever a challenge is lost

SocialProfile

[edit]

SocialProfile's initial Echo support was originally added by Ikasty on a fork, which can be seen at https://github.com/wiki-chan/Social/commit/bb932d15d36bcb4ee076bdcf0e8494496eb0906b. It was partially rewritten, expanded on and cleaned up by Jack Phoenix, and merged by Lewis Cawte. (Gerrit change 278868, Gerrit change 325141)

  • SystemGifts
i18n message Event Header message Body message Primary link Secondary link
SystemGifts
notification-social-award-rec You have received a new award: $1 None
notification-social-award-rec-bundle You have received {{PLURAL:$1|one new award|$1 new awards}}. None
UserBoard
notification-social-msg-send $1 just left a message for you. $2 None
notification-social-msg-send-bundle {{PLURAL:$1|One person|$1 people|100=99+ people}} left messages for you. None
UserGifts
notification-social-gift-send-no-message $1 just sent a gift to you: $2
notification-social-gift-send-with-message $1 just sent a gift to you: $2. $3
notification-social-gift-send-bundle {{PLURAL:$1|One person|$1 people}} sent you gifts.
UserRelationship
notification-social-rel-add-friend-message $1 wants to be your friend.$2
notification-social-rel-add-foe-message $1 wants to be your foe.$2
notification-social-rel-add-friend-no-message $1 wants to be your friend.
notification-social-rel-add-foe-no-message $1 wants to be your foe.
notification-social-rel-accept-friend You became friends with $1.
notification-social-rel-accept-foe You became foes with $1.
notification-social-rel-accept-email-subject $1 has accepted your relationship request!
notification-social-rel-accept-email-batch-body $1 has accepted your relationship request.
UserStats
notification-social-level-up You have leveled up to \"$1\"!
notification-social-level-up-bundle You have leveled up {{PLURAL:$1|one level|$1 levels}} to $2!

WikiForum

[edit]

WikiForum doesn't have notifications, but an open patchset exists for adding notifications support (see Gerrit change 763565). The original iteration of this patchset was created a few months after ticket #355 at brickimedia/brickimedia on GitHub was created.