Commit graph

3641 commits

Author SHA1 Message Date
Peter Cai
9ec5d6e3b0
Push notifications support via UnifiedPush (#2303)
Fixes #793.

This is an implementation for push notifications based on UnifiedPush
for Tusky. No push gateway (other than UP itself) is needed, since
UnifiedPush is simple enough such that it can act as a catch-all
endpoint for WebPush messages. When a UnifiedPush distributor is present
on-device, we will by default register Tusky as a receiver; if no
UnifiedPush distributor is available, then pull notifications are used
as a fallback mechanism.

Because WebPush messages are encrypted, and Mastodon does not send the
keys and IV needed for decryption in the request body, for now the push
handler simply acts as a trigger for the pre-existing NotificationWorker
which is also used for pull notifications. Nevertheless, I have
implemented proper key generation and storage, just in case we would
like to implement full decryption support in the future when Mastodon
upgrades to the latest WebPush encryption scheme that includes all
information in the request body.

For users with existing accounts, push notifications will not be enabled
until all of the accounts have been re-logged in to grant the new push
OAuth scope. A small prompt will be shown (until dismissed) as a
Snackbar to explain to the user about this, and an option is added in
Account Preferences to facilitate re-login without deleting local drafts
and cache.
2022-05-17 19:32:09 +02:00
Conny Duck
20f3ec921f Release 91 2022-05-17 19:24:17 +02:00
Konrad Pozniak
6e9608256f
Merge pull request #2535 from nailyk-weblate/weblate-tusky-tusky-app
None
2022-05-17 19:16:35 +02:00
hebbeff
74e139c110 Translated using Weblate (Chinese (Simplified))
Currently translated at 88.2% (15 of 17 strings)

Translation: Tusky/Tusky description
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky-app/zh_Hans/
2022-05-17 17:16:27 +00:00
Konrad Pozniak
bd2435450c
Merge pull request #2529 from nailyk-weblate/weblate-tusky-tusky
None
2022-05-17 19:16:23 +02:00
GunChleoc
0bf71e6420 Translated using Weblate (Gaelic)
Currently translated at 100.0% (479 of 479 strings)

Co-authored-by: GunChleoc <fios@foramnagaidhlig.net>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/gd/
Translation: Tusky/Tusky
2022-05-17 09:40:38 +00:00
hebbeff
725ce02ab1 Translated using Weblate (Chinese (Traditional))
Currently translated at 91.6% (439 of 479 strings)

Co-authored-by: hebbeff <hebbeff@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/zh_Hant/
Translation: Tusky/Tusky
2022-05-17 09:40:38 +00:00
ButterflyOfFire
ec72cd0b52 Translated using Weblate (French)
Currently translated at 99.5% (477 of 479 strings)

Co-authored-by: ButterflyOfFire <butterflyoffire@protonmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/fr/
Translation: Tusky/Tusky
2022-05-17 09:40:38 +00:00
Konrad Pozniak
8c6ccf4261
fix notification message formatting when username is not at the beginning of the message (#2522)
* fix notification message formatting when username is not at the beginning of the message

* search for placeholder in format string
2022-05-13 22:00:30 +02:00
Konrad Pozniak
ec2eae9e89
Merge pull request #2520 from nailyk-weblate/weblate-tusky-tusky
None
2022-05-13 21:59:38 +02:00
GunChleoc
8fc2c1601e Translated using Weblate (Gaelic)
Currently translated at 100.0% (479 of 479 strings)

Translated using Weblate (Gaelic)

Currently translated at 100.0% (479 of 479 strings)

Co-authored-by: GunChleoc <fios@foramnagaidhlig.net>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/gd/
Translation: Tusky/Tusky
2022-05-13 18:41:13 +00:00
Hồ Nhất Duy
a6dc7ef425 Translated using Weblate (Vietnamese)
Currently translated at 100.0% (479 of 479 strings)

Co-authored-by: Hồ Nhất Duy <kantcer@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/vi/
Translation: Tusky/Tusky
2022-05-13 18:41:13 +00:00
Ihor Hordiichuk
47eabafed3 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (479 of 479 strings)

Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/uk/
Translation: Tusky/Tusky
2022-05-13 18:41:13 +00:00
Eric
6f515ad98a Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (479 of 479 strings)

Co-authored-by: Eric <alchemillatruth@purelymail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/zh_Hans/
Translation: Tusky/Tusky
2022-05-13 18:41:13 +00:00
Agee Kalisz
354b07aa73 Translated using Weblate (Polish)
Currently translated at 100.0% (479 of 479 strings)

Co-authored-by: Agee Kalisz <maciupeq@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/pl/
Translation: Tusky/Tusky
2022-05-13 18:41:13 +00:00
Konrad Pozniak
e9f6d07b38
Merge pull request #2519 from nailyk-weblate/weblate-tusky-tusky-app
None
2022-05-13 20:41:09 +02:00
Hồ Nhất Duy
523c9b6b8c Translated using Weblate (Vietnamese)
Currently translated at 100.0% (17 of 17 strings)

Translation: Tusky/Tusky description
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky-app/vi/
2022-05-12 16:21:47 +00:00
Ihor Hordiichuk
0a0f314516 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (17 of 17 strings)

Translation: Tusky/Tusky description
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky-app/uk/
2022-05-12 16:21:47 +00:00
Konrad Pozniak
d9c6269d44
fix deleting media attachments removing the wrong ones (#2517) 2022-05-12 18:21:43 +02:00
Konrad Pozniak
b8e3b6b884
fix currently logged in profiles not being visible in main drawer when offline (#2516) 2022-05-12 18:21:33 +02:00
mcclure
4159826f26
Allow build on systems without git (#2514)
Set git revision to "unknown" if git not available.
2022-05-11 17:16:51 +02:00
Konrad Pozniak
0f1e95d0ca add 35.json 2022-05-11 07:43:30 +02:00
Conny Duck
7db504775c Release 90 2022-05-10 20:00:53 +02:00
Konrad Pozniak
e532bcac0e
Merge pull request #2509 from nailyk-weblate/weblate-tusky-tusky-app
None
2022-05-10 19:24:44 +02:00
Christian Schmidt
b353e67587 Translated using Weblate (German)
Currently translated at 100.0% (16 of 16 strings)

Translation: Tusky/Tusky description
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky-app/de/
2022-05-10 17:24:33 +00:00
Konrad Pozniak
eea2f6d250
Merge pull request #2498 from nailyk-weblate/weblate-tusky-tusky
None
2022-05-10 19:24:28 +02:00
Bruno Miguel
23d6d04b39 Translated using Weblate (Portuguese (Portugal))
Currently translated at 100.0% (478 of 478 strings)

Co-authored-by: Bruno Miguel <brunoalexandremiguel@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/pt_PT/
Translation: Tusky/Tusky
2022-05-09 17:40:36 +00:00
Christian Schmidt
3d3287cc42 Translated using Weblate (German)
Currently translated at 100.0% (478 of 478 strings)

Co-authored-by: Christian Schmidt <mastodon@jcs-net.de>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/de/
Translation: Tusky/Tusky
2022-05-09 17:40:36 +00:00
ruben
d421de6ba8 Translated using Weblate (Catalan)
Currently translated at 93.3% (446 of 478 strings)

Co-authored-by: ruben <rubnx@proton.me>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/ca/
Translation: Tusky/Tusky
2022-05-09 17:40:36 +00:00
GunChleoc
529452c193 Translated using Weblate (Gaelic)
Currently translated at 100.0% (478 of 478 strings)

Co-authored-by: GunChleoc <fios@foramnagaidhlig.net>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/gd/
Translation: Tusky/Tusky
2022-05-09 17:40:36 +00:00
Hồ Nhất Duy
9ec41903cf Translated using Weblate (Vietnamese)
Currently translated at 100.0% (478 of 478 strings)

Co-authored-by: Hồ Nhất Duy <kantcer@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/vi/
Translation: Tusky/Tusky
2022-05-09 17:40:36 +00:00
Vegard Skjefstad
aa20040479 Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (478 of 478 strings)

Co-authored-by: Vegard Skjefstad <vegard@vegard.net>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/nb_NO/
Translation: Tusky/Tusky
2022-05-09 17:40:36 +00:00
Eric
010a4372f9 Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (478 of 478 strings)

Co-authored-by: Eric <alchemillatruth@purelymail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/zh_Hans/
Translation: Tusky/Tusky
2022-05-09 17:40:36 +00:00
Stefano Pigozzi
078603819a Translated using Weblate (Italian)
Currently translated at 100.0% (478 of 478 strings)

Co-authored-by: Stefano Pigozzi <me@steffo.eu>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/it/
Translation: Tusky/Tusky
2022-05-09 17:40:36 +00:00
Ihor Hordiichuk
8b840396fd Translated using Weblate (Ukrainian)
Currently translated at 100.0% (478 of 478 strings)

Translated using Weblate (Ukrainian)

Currently translated at 100.0% (478 of 478 strings)

Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/uk/
Translation: Tusky/Tusky
2022-05-09 17:40:36 +00:00
idontwanttohaveausername
fc1e153cb3 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (478 of 478 strings)

Co-authored-by: idontwanttohaveausername <bydlanm@outlook.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/uk/
Translation: Tusky/Tusky
2022-05-09 17:40:36 +00:00
Konrad Pozniak
45ac280db7
Add Portuguese (Portugal) to the in-app language picker (#2507) 2022-05-09 19:40:32 +02:00
Konrad Pozniak
beaed6b875
Fix crash when saving redrafted media to drafts (#2502)
* fix crash when saving draft from redraft

* fix crash when saving draft from redraft

* replace ... with …
2022-05-09 19:39:43 +02:00
Levi Bard
b4eda5ea65
Unbreak link previews in timelines (#2506) 2022-05-05 18:27:05 +02:00
Konrad Pozniak
db81ede04a
fix login webview title color with light theme (#2497) 2022-05-04 18:40:29 +02:00
Konrad Pozniak
d5a58d7618
Merge pull request #2495 from nailyk-weblate/weblate-tusky-tusky
None
2022-05-03 20:00:33 +02:00
Stefano Pigozzi
cb1f4898ba Translated using Weblate (Italian)
Currently translated at 100.0% (477 of 477 strings)

Translated using Weblate (Italian)

Currently translated at 96.6% (461 of 477 strings)

Co-authored-by: Stefano Pigozzi <me@steffo.eu>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/it/
Translation: Tusky/Tusky
2022-05-03 18:00:09 +00:00
Bruno Miguel
7b98adf1ee Translated using Weblate (Portuguese (Portugal))
Currently translated at 100.0% (477 of 477 strings)

Co-authored-by: Bruno Miguel <brunoalexandremiguel@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/pt_PT/
Translation: Tusky/Tusky
2022-05-03 18:00:09 +00:00
Makis Diakatos
58bd20edca Translated using Weblate (Greek)
Currently translated at 22.0% (105 of 477 strings)

Co-authored-by: Makis Diakatos <jerry_deus@hotmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/el/
Translation: Tusky/Tusky
2022-05-03 18:00:09 +00:00
Hồ Nhất Duy
95581fa026 Translated using Weblate (Vietnamese)
Currently translated at 100.0% (477 of 477 strings)

Co-authored-by: Hồ Nhất Duy <kantcer@gmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/vi/
Translation: Tusky/Tusky
2022-05-03 18:00:09 +00:00
mondstern
97e8a25a47 Translated using Weblate (German)
Currently translated at 99.1% (473 of 477 strings)

Co-authored-by: mondstern <mondstern@snopyta.org>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/de/
Translation: Tusky/Tusky
2022-05-03 18:00:09 +00:00
ButterflyOfFire
76accf0d0d Translated using Weblate (French)
Currently translated at 100.0% (477 of 477 strings)

Translated using Weblate (Arabic)

Currently translated at 98.3% (469 of 477 strings)

Co-authored-by: ButterflyOfFire <butterflyoffire@protonmail.com>
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/ar/
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky/fr/
Translation: Tusky/Tusky
2022-05-03 18:00:09 +00:00
Konrad Pozniak
f42b92c88f
Merge pull request #2482 from nailyk-weblate/weblate-tusky-tusky-app
None
2022-05-03 20:00:05 +02:00
Bruno Miguel
a86391a7e9 Translated using Weblate (Portuguese (Portugal))
Currently translated at 100.0% (16 of 16 strings)

Translation: Tusky/Tusky description
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky-app/pt_PT/
2022-05-03 17:16:02 +00:00
Sveinn í Felli
90ff654473 Translated using Weblate (Icelandic)
Currently translated at 100.0% (16 of 16 strings)

Translation: Tusky/Tusky description
Translate-URL: https://weblate.tusky.app/projects/tusky/tusky-app/is/
2022-05-03 17:16:02 +00:00