Commit Graph

136 Commits

Author SHA1 Message Date
Eugen Rochko
054bbb3da2
Immediately display poll results to poll author ()
* Immediately display poll results to poll author

* Refactor Poll#loaded_options and add Poll#voted? to improve DRYness
2019-03-07 22:53:47 +01:00
rinsuki
f44091d653 Fix () 2019-03-07 01:49:42 +01:00
Eugen Rochko
a198add83b
Fix various issues in polls ()
* Fix ActivityPub poll results being serialized even with hide_totals

* Fix poll refresh button having a different font size

* Display poll in OpenGraph description

* Fix NoMethodError when serializing votes

Regression from 

* Fix polls on public pages being broken for non-logged-in users

* Do not show time remaining if poll has no expiration date
2019-03-05 03:51:18 +01:00
ThibG
3de71887d8 Add non-JS fallback for polls on public pages () 2019-03-04 18:03:12 +01:00
Eugen Rochko
230a012f00
Add polls ()
* Add polls

Fix 

* Add tests

* Fixes

* Change API for creating polls

* Use name instead of content for votes

* Remove poll validation for remote polls

* Add polls to public pages

* When updating the poll, update options just in case they were changed

* Fix public pages showing both poll and other media
2019-03-03 22:18:23 +01:00
ThibG
ed30110618 Make displaying application used to toot opt-in ()
* Make storing and displaying application used to toot opt-in

* Revert to storing application info, and display it to the author via API
2019-02-02 19:18:15 +01:00
ThibG
2648645d05 Display a double reply arrow on public pages for toots that are replies () 2019-01-14 17:29:04 +01:00
ThibG
4fb94c758e Add attachment list fallback to public pages ()
* Add attachment list fallback to public pages

Fixes 

* Refactor attachments lists
2019-01-13 09:23:54 +00:00
Eugen Rochko
5654535728
Change remote interaction dialog to use specific actions ()
* Change remote interaction dialog to use specific actions

Instead of just "interact", use different strings based on whether
it's a reply, reblog or favourite. Add explanation why the step
is necessary in the first place

* Remove obsolete strings
2019-01-07 15:36:26 +01:00
Eugen Rochko
664bb7bb72
Add preview cards to non-detailed statuses on public pages () 2019-01-04 11:40:02 +01:00
Eugen Rochko
d723f2a0a8
Fix RTL layout of status display names ()
Fix 
2018-10-24 18:18:08 +02:00
ThibG
84cf78da8a Fix og:url on toots' public view ()
Fixes 
2018-10-21 22:52:10 +02:00
Eugen Rochko
ddd30f331c
Improve support for aspects/circles ()
* Add silent column to mentions

* Save silent mentions in ActivityPub Create handler and optimize it

Move networking calls out of the database transaction

* Add "limited" visibility level masked as "private" in the API

Unlike DMs, limited statuses are pushed into home feeds. The access
control rules between direct and limited statuses is almost the same,
except for counter and conversation logic

* Ensure silent column is non-null, add spec

* Ensure filters don't check silent mentions for blocks/mutes

As those are "this person is also allowed to see" rather than "this
person is involved", therefore does not warrant filtering

* Clean up code

* Use Status#active_mentions to limit returned mentions

* Fix code style issues

* Use Status#active_mentions in Notification

And remove stream_entry eager-loading from Notification
2018-10-17 17:13:04 +02:00
Eugen Rochko
5cbbd2c3b5
Fix microformats on statuses according to updated spec () 2018-10-12 02:04:07 +02:00
Eugen Rochko
2459da29c2
Add description meta tag additionally to og:description ()
Fix 
2018-10-10 02:21:30 +02:00
Eugen Rochko
3d7f68c273
Revert Font Awesome 5 upgrade ()
* Revert "Fix some icon names changed by the Font Awesome 5. ()"

This reverts commit 3f9ec3de82.

* Revert "Migrate to font-awesome 5.0. ()"

This reverts commit 8bae14591b.

* Revert "Fix some icons names, unavailable in fontawesome5 (free license). ()"

This reverts commit b9c727a945.

* Revert "Update the icon name changed by the Font Awesome 5. ()"

This reverts commit 17af4d27da.

* Revert "Add bot icon to bot avatars and migrate to newer version of Font Awesome ()"

This reverts commit 4b794e134d.
2018-09-28 02:11:14 +02:00
Naoki Kosaka
8bae14591b Migrate to font-awesome 5.0. () 2018-09-27 17:08:56 +02:00
ふぁぼ原
f7a6f9489d Add a new preference to always hide all media () 2018-09-25 05:09:35 +02:00
Matt Sweetman
1889526e23 Add user preference to always expand toots marked with content warnings () 2018-09-24 05:44:01 +02:00
Yamagishi Kazutoshi
0e661dd2e9 Fix static URL when disable autoplay () 2018-09-01 16:09:24 +02:00
Renato "Lond" Cerqueira
fe56d26f7b Fix autoplay issue with spoiler tag ()
Add tests to avoid similar issues in the future
2018-08-31 15:16:59 +02:00
Renato "Lond" Cerqueira
11658d8653 Add animate custom emoji param to embed pages ()
* Add animate custom emoji param to embed pages

* Rename param, use it for avatars and gifs

* Fix issues pointed by codeclimate and breaking test

* Ignore brakeman warning
2018-08-30 23:14:01 +02:00
M Somerville
ac092d03e7 Add missing video descriptions ()
* Pass through video description as necessary.

* Add title to video, matching aria-label.
2018-08-24 23:55:41 +02:00
Eugen Rochko
85bb32c410
Add "sign in to participate" message to public toot page () 2018-08-18 12:48:27 +02:00
Eugen Rochko
78fa926ed5
Add remote interaction dialog for toots ()
* Add remote interaction dialog for toots

* Change AuthorizeFollow into AuthorizeInteraction, support statuses

* Update brakeman.ignore

* Adjust how interaction buttons are display on public pages

* Fix tests
2018-08-18 03:03:12 +02:00
Eugen Rochko
bb71538bb5
Redesign public profiles and toots () 2018-07-28 19:25:33 +02:00
Eugen Rochko
30e1da7668
Add follow button to detailed status, add gradient to mask bio cut-off ()
* Add follow button to detailed status, add gradient to mask bio cut-off

* In landing strip, show sign up link even if closed (different href)

Point to joinmastodon.org
2018-07-07 22:20:14 +02:00
Eugen Rochko
cd509d2146
Remove .p-name microformat class ()
Fix 
2018-07-07 18:51:56 +02:00
Eugen Rochko
f89c595ea0
Add admin setting to enable OG previews for sensitive media () 2018-07-06 02:15:56 +02:00
Eugen Rochko
2092d5c0ad
Improve embeds ()
* Make embeds cacheable by reverse proxy

* Make follow button on embeds open remote follow modal

Instead of web+mastodon://, also, turn the button blue, and add a
sign up prompt to the remote follow modal
2018-07-01 04:12:34 +02:00
Eugen Rochko
61a9018607
Enable custom emojis in profiles (notes, field values, display names) ()
Follow-up to 
2018-05-06 11:48:51 +02:00
Eugen Rochko
da61352fab
Fix "Show more" URL on paginated threads for remote statuses ()
* Fix URL of "Show more" link in paginated threads (ancestors side)

Increase item limits in threads

Fix 

* Fix "Show more" link in paginated threads (descendants side)
2018-04-30 01:59:42 +02:00
Akihiko Odaki
1258efa882 Paginate descendant statuses in public page () 2018-04-23 19:27:35 +02:00
Eugen Rochko
a9c440637c
Improve report layout ()
* Use table for statuses in report

* Display reported account and reporter in the same table

* Split accounts and general report info into two tables again

* Redesign report statuses table, notes, merge notes and action log

* Remove unused translations

* Fix code style issue

* Fix code style issue

* Fix code style issue
2018-04-20 02:28:48 +02:00
Akihiko Odaki
519119f657 Paginate ancestor statuses in public page ()
This also limits the statuses returned by API, but pagination is not
implemented in Web API yet. I still expect it brings user experience
better than making a user wait to fetch all ancestor statuses and flooding
the column with them.
2018-04-11 12:35:09 +02:00
Eugen Rochko
a568e3ca8e
Revert , hide sensitive text/images from OpenGraph previews ()
Display summary of attachments in description, and mark up content
warning if present, e.g.:

    Attached: 3 images · Content warning: Dota 2

When text is not supposed to be hidden, it looks more like:

    Attached: 3 images

    Here is the text of the toot

With , multilinguagility should be assured...
2018-03-18 20:33:07 +01:00
vpzomtrrfrt
e26d5ca923 Don't escape statuses while truncating () 2018-03-07 07:12:01 +01:00
Eugen Rochko
036dd98abb
Responsively enforce 16:9 ratio on all media thumbnails in web UI ()
* Responsively enforce 16:9 ratio on all media thumbnails in web UI

Also change video player behaviour to "contain" rather than
"cover" videos that don't fit the ratio, unlike images and GIFs,
it's expected that a video is shown fully.

* Fix spacing issues and remove floor

* Remove floor
2018-03-02 07:00:04 +01:00
Eugen Rochko
9dbae6e8a1
Save video metadata and improve video OpenGraph tags ()
* Save metadata from video attachments, put correct dimensions into OG tags

* Add twitter:player for videos

* Fix code style and test
2018-02-16 07:22:20 +01:00
Eugen Rochko
1122579216
Do not hide NSFW media/CW'd text in OpenGraph tags ()
Reasoning: HTML title tag affects everyone. But OpenGraph only affects
when somebody is deliberately sharing the content, usually in an
environment where such content is expected. Hiding the content in
OpenGraph tags results in deceitful previews which inhibit the
shareability of the post.

Example: Somebody writes a clever post about politics but kindly
puts a "uspol" content warning on it. Mastodon users are thankful,
but sharing this post on another platform results in non-Mastodon
users believing the entire contents of the post is "uspol" and not
clicking through/reading and re-sharing.
2018-02-16 04:40:53 +01:00
Eugen Rochko
76f3d5d16b
Add preference to always display sensitive media () 2018-02-09 00:26:57 +01:00
Eugen Rochko
d41f0b66cc
Fix : Use content warning for page title when present () 2018-01-09 19:34:58 +01:00
Eugen Rochko
30d2ea03b0
Improve public status page title () 2017-12-12 03:56:30 +01:00
Eugen Rochko
70ce2a2095
Polish video player CSS, add timer on fullscreen/modal/public pages () 2017-12-09 00:55:58 +01:00
Yamagishi Kazutoshi
1c5b0e3334 Use account.username when display_name is empty () 2017-11-27 16:09:52 +01:00
Alda Marteau-Hardi
0ea4478b68 Use account.display_name for og:title single toot pages () 2017-11-27 05:31:26 +01:00
KY
f72936b4e6 Fix - disable retweet link for followers only toot ()
* Fix  - disable retweet link for followers only toot

* Hide reblog count when it is a direct message
2017-10-16 14:10:12 +02:00
Nolan Lawson
fa0be3f834 Add option to reduce motion ()
* Add option to reduce motion

* Use HOC to wrap all Motion calls

* fix case-sensitive issue

* Avoid updating too frequently

* Get rid of unnecessary change to _simple_status.html.haml
2017-10-16 09:36:15 +02:00
Eugen Rochko
b406e3cc4c Fix - Use summary_large_image only with media attachments () 2017-10-04 19:06:23 +02:00
Eugen Rochko
2f079573ed In detail status view, display attachment uncropped if there's only one ()
* In detail status view, display attachment uncropped if there's only one

* Make media spoiler the size of the media it hides, enable on static
2017-09-24 05:58:30 +02:00