Commit graph

2673 commits

Author SHA1 Message Date
Mélanie Chauvel
2fc3ba3cee
Replace “status” by “post” in strings name and source values (#2405) 2022-03-27 12:23:25 +02:00
Levi Bard
bbd818084d
When calculating post length, count all urls as being of the reserved character count, even if they're shorter. (#2404)
Addresses #2399
2022-03-24 19:52:18 +01:00
Konrad Pozniak
2017d0b13b
update glide animation plugin to 2.20.0 (#2401) 2022-03-23 19:14:41 +01:00
GunChleoc
9385c5338b Translated using Weblate (Gaelic)
Currently translated at 100.0% (469 of 469 strings)

Co-authored-by: GunChleoc <fios@foramnagaidhlig.net>
Translate-URL: https://"weblate.tusky.app"/projects/tusky/tusky/gd/
Translation: Tusky/Tusky
2022-03-22 18:40:54 +00:00
Ihor Hordiichuk
413e1b1cbc Translated using Weblate (Ukrainian)
Currently translated at 100.0% (469 of 469 strings)

Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Translate-URL: https://"weblate.tusky.app"/projects/tusky/tusky/uk/
Translation: Tusky/Tusky
2022-03-22 18:40:54 +00:00
Vegard Skjefstad
0bd09427b9 Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (469 of 469 strings)

Co-authored-by: Vegard Skjefstad <vegard@vegard.net>
Translate-URL: https://"weblate.tusky.app"/projects/tusky/tusky/nb_NO/
Translation: Tusky/Tusky
2022-03-22 18:40:54 +00:00
Eric
2e9a62ec94 Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (469 of 469 strings)

Co-authored-by: Eric <alchemillatruth@purelymail.com>
Translate-URL: https://"weblate.tusky.app"/projects/tusky/tusky/zh_Hans/
Translation: Tusky/Tusky
2022-03-22 18:40:54 +00:00
Konrad Pozniak
d9931e3d2c
Rename Toots to Posts (#2396)
* rename toots -> posts in strings

* extract tusky_compose_post_quicksetting_label string

* rename toot -> status in code
2022-03-20 20:21:42 +01:00
Konrad Pozniak
bfcdee4a53
Merge pull request #2392 from tuskyapp/enable_javascript
enable JavaScript in LoginWebViewActivity
2022-03-19 21:07:15 +01:00
Daniele Lira Mereb
d0efe27de2 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (468 of 468 strings)

Co-authored-by: Daniele Lira Mereb <danielelmereb@gmail.com>
Translate-URL: https://"weblate.tusky.app"/projects/tusky/tusky/pt_BR/
Translation: Tusky/Tusky
2022-03-19 17:40:51 +00:00
Ralf Thees
fcc801564f Translated using Weblate (German)
Currently translated at 100.0% (468 of 468 strings)

Co-authored-by: Ralf Thees <ralf@herrthees.de>
Translate-URL: https://"weblate.tusky.app"/projects/tusky/tusky/de/
Translation: Tusky/Tusky
2022-03-19 17:40:51 +00:00
Conny Duck
152c8b45d0 enable JavaScript in LoginWebViewActivity 2022-03-17 21:52:06 +01:00
Konrad Pozniak
0dc32774ec
handle screen rotation in LoginWebViewActivity (#2390) 2022-03-17 21:50:14 +01:00
cketti
e6f7d9d5af
Fix image preview in share sheet (#2389) 2022-03-16 18:46:26 +01:00
Konrad Pozniak
e05fdc6d7b
Fix status diffing and improve timeline performance (#2386)
* fix status & account diffing

* introduce TimelineAccount

* use TimelineAccount where possible

* improve tests

* improve ConversationEntity equals/hashcode

* fix mistake in ConversationEntity

* improve StatusViewData comparison

* improve tests

* fix typo in comment
2022-03-15 21:34:57 +01:00
Konrad Pozniak
6e4a9fb0e6
upgrade glide animation plugin to 2.18.0 (#2387) 2022-03-15 19:37:29 +01:00
Konrad Pozniak
a257d9b769
correctly render whitespace in posts (#2383)
* correctly preserve whitespace in posts

* use extension function to convert from Spanned to Html

* improve comment
2022-03-14 14:43:00 +01:00
Konrad Pozniak
991d261459
change media download location to Download directory (#2384) 2022-03-14 13:55:25 +01:00
Hồ Nhất Duy
6a6e1e5566 Translated using Weblate (Vietnamese)
Currently translated at 100.0% (468 of 468 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-03-13 15:08:30 +00:00
sphoneix
fb2c6be25a Translated using Weblate (Italian)
Currently translated at 100.0% (468 of 468 strings)

Co-authored-by: sphoneix <simone.pugliese21@gmail.com>
Translate-URL: https://"weblate.tusky.app"/projects/tusky/tusky/it/
Translation: Tusky/Tusky
2022-03-13 15:08:30 +00:00
ButterflyOfFire
594f3129ca Translated using Weblate (French)
Currently translated at 100.0% (468 of 468 strings)

Co-authored-by: ButterflyOfFire <butterflyoffire@protonmail.com>
Translate-URL: https://"weblate.tusky.app"/projects/tusky/tusky/fr/
Translation: Tusky/Tusky
2022-03-13 15:08:30 +00:00
XoseM
ac19247f19 Translated using Weblate (Galician)
Currently translated at 100.0% (468 of 468 strings)

Co-authored-by: XoseM <xosem@disroot.org>
Translate-URL: https://"weblate.tusky.app"/projects/tusky/tusky/gl/
Translation: Tusky/Tusky
2022-03-13 15:08:30 +00:00
Konrad Pozniak
38eded4efb
update dependencies (#2381) 2022-03-13 16:08:27 +01:00
Konrad Pozniak
15304440ef
fix "nothing here" flickering when starting Tusky (#2377) 2022-03-12 09:38:59 +01:00
kyori19
72bb34bf27
Fix some network timeline bugs (#2373)
* Fix network timeline gap loading

* Fix fullReload keeps nextKey

* Fix reload after clearing timeline

* Improve logic to handle overlapped statuses
2022-03-12 09:38:48 +01:00
Konrad Pozniak
55513e8e2b
Android 12 support, update AndroidX libraries (#2367)
* Android 12 support, update AndroidX libraries

* fix ktlint

* add Android 12 splash screen support

* fix comments in MainActivity

* remove deprecated Intent.ACTION_CLOSE_SYSTEM_DIALOGS

* delete TimelineViewModelTest

* fix notifications on Android 12

* improve splash screen

* handle pending intent flags in a dedicated function
2022-03-09 20:50:23 +01:00
Konrad Pozniak
221cdb3611
move "animate custom emojis" preference next to "animate avatars" (#2376) 2022-03-08 21:40:10 +01:00
Konrad Pozniak
34b7a3c8ee
Don't hide potential timeline bugs by catching all exceptions (#2372)
* don't hide potential timeline bugs by catching all exceptions

* fix NetworkTimelineRemoteMediatorTest

* improve ifExpected function

* fix code formatting
2022-03-08 21:39:59 +01:00
Ivan Kupalov
4d8289b245
Implement Login via WebView (#2371)
* Improve login process with newer APIs

* Implement login with WebView instead of browser tab or external browser

Oauth process requires us to open login prompt for correct instance and
we need to receive the result back. Usually it is done with redirect
parameter.

Previously we've been using BrowserTabs API and have been falling back
to just opening browser. This mostly worked but is very clumsy:

 - It relies on few system mechanisms for opening URLs in both
directions
 - Browsers do weird things and tend to break quite a bit
 - There's a good chance that the app can die in the process and we need
to recover our state.

So instead we are now using WebView. It has disadvantages (users have
to trust us to show correct page, logins are not shared w/ browser) but
it should be more reliable.

* Changes to login after review

* Move login classes to their own package

* Fix linting issues
2022-03-08 21:22:19 +01:00
Ihor Hordiichuk
98a2bc381d Translated using Weblate (Ukrainian)
Currently translated at 100.0% (468 of 468 strings)

Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Translate-URL: https://"weblate.tusky.app"/projects/tusky/tusky/uk/
Translation: Tusky/Tusky
2022-03-06 16:40:28 +00:00
Sveinn í Felli
c0b8a6f92a Translated using Weblate (Icelandic)
Currently translated at 100.0% (468 of 468 strings)

Co-authored-by: Sveinn í Felli <sv1@fellsnet.is>
Translate-URL: https://"weblate.tusky.app"/projects/tusky/tusky/is/
Translation: Tusky/Tusky
2022-03-06 16:40:28 +00:00
GunChleoc
4646685e0a Translated using Weblate (Gaelic)
Currently translated at 100.0% (468 of 468 strings)

Co-authored-by: GunChleoc <fios@foramnagaidhlig.net>
Translate-URL: https://"weblate.tusky.app"/projects/tusky/tusky/gd/
Translation: Tusky/Tusky
2022-03-06 16:40:28 +00:00
Hồ Nhất Duy
75ef1ae11d Translated using Weblate (Vietnamese)
Currently translated at 100.0% (468 of 468 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-03-06 16:40:28 +00:00
Vegard Skjefstad
f14e9e80d0 Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (468 of 468 strings)

Co-authored-by: Vegard Skjefstad <vegard@vegard.net>
Translate-URL: https://"weblate.tusky.app"/projects/tusky/tusky/nb_NO/
Translation: Tusky/Tusky
2022-03-06 16:40:28 +00:00
Eric
7efafe7cb4 Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (468 of 468 strings)

Co-authored-by: Eric <alchemillatruth@purelymail.com>
Translate-URL: https://"weblate.tusky.app"/projects/tusky/tusky/zh_Hans/
Translation: Tusky/Tusky
2022-03-06 16:40:28 +00:00
ButterflyOfFire
a053490bdf Translated using Weblate (French)
Currently translated at 100.0% (468 of 468 strings)

Translated using Weblate (Occitan)

Currently translated at 97.2% (455 of 468 strings)

Translated using Weblate (Arabic)

Currently translated at 98.9% (463 of 468 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/
Translate-URL: https://"weblate.tusky.app"/projects/tusky/tusky/oc/
Translation: Tusky/Tusky
2022-03-06 16:40:28 +00:00
Jonathan Soares
52933d00a8 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (462 of 462 strings)

Co-authored-by: Jonathan Soares <vsrw5bfj@duck.com>
Translate-URL: https://"weblate.tusky.app"/projects/tusky/tusky/pt_BR/
Translation: Tusky/Tusky
2022-03-06 16:40:28 +00:00
Konrad Pozniak
841373e947
fix various timeline related crashes (#2369)
* fix various timeline related crashes

* fix ktlint
2022-03-06 17:40:24 +01:00
Konrad Pozniak
73e9338f3c
fix timeline jumping to top when activity is recreated (#2364) 2022-03-03 20:01:47 +01:00
Konrad Pozniak
497b434663
Improve timeline dao (#2353)
* improve TimelineDao methods

* remove @Transaction from cleanup methods
2022-03-02 20:40:06 +01:00
Konrad Pozniak
a6335e6bcd
update Android Image Cropper and get rid of deprecated onActivityResult (#2351)
* update Android Image Cropper and get rid of deprecated onActivityResult

* add comment why skipping caches is necessary

* inject application into EditProfileViewModel instead of passing it everytime
2022-03-02 20:39:56 +01:00
Konrad Pozniak
4dee5c2774
display account name when display name is not set (#2361) 2022-03-01 21:29:16 +01:00
Konrad Pozniak
b145fc9d50
fix String.inc() and String.dec() not being inverse operations (#2355) 2022-03-01 21:29:05 +01:00
Konrad Pozniak
60c32b3370
Merge pull request #2356 from nailyk-weblate/weblate-tusky-tusky
Translations update from Weblate
2022-03-01 19:44:25 +01:00
Levi Bard
7114575497
Instance configuration: the easy parts (#2341)
* Add data model for instance configuration

* Support instance.configuration.statuses.max_characters

* Support instance.configuration.statuses.characters_reserved_per_url

* Support instance.configuration.polls.max_options and max_characters_per_option

* Pacify ktlint

* Support instance-configured poll durations

* Fixup versions for migration after rebase
2022-03-01 19:43:36 +01:00
Eric
2a135cd3a1 Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (462 of 462 strings)

Co-authored-by: Eric <alchemillatruth@purelymail.com>
Translate-URL: https://"weblate.tusky.app"/projects/tusky/tusky/zh_Hans/
Translation: Tusky/Tusky
2022-02-28 15:54:28 +00:00
Levi Bard
cdefcc441f
Fix relinkifying tags in posts from remote servers (#2359)
* Fix relinkifying tags in posts from remote servers

* Completely ignore urls, and (case-insensitively) match tag names instead
2022-02-28 16:54:25 +01:00
Konrad Pozniak
2c91b1148c
fix database migration to v29 (#2354) 2022-02-27 20:16:41 +01:00
Conny Duck
842ab9e131 fix LinkHelperTest 2022-02-25 19:35:02 +01:00
Konrad Pozniak
bd05bf6b01
correctly align buttons in follow requests (#2342) 2022-02-25 18:58:01 +01:00