Commit Graph

716 Commits

Author SHA1 Message Date
Eugen Rochko cdb101340a
Keyword/phrase filtering ()
* Add keyword filtering

    GET|POST       /api/v1/filters
    GET|PUT|DELETE /api/v1/filters/:id

- Irreversible filters can drop toots from home or notifications
- Other filters can hide toots through the client app
- Filters use a phrase valid in particular contexts, expiration

* Make sure expired filters don't get applied client-side

* Add missing API methods

* Remove "regex filter" from column settings

* Add tests

* Add test for FeedManager

* Add CustomFilter test

* Add UI for managing filters

* Add streaming API event to allow syncing filters

* Fix tests
2018-06-29 15:34:36 +02:00
Eugen Rochko a58ec29631
Allow selecting default posting language instead of auto-detect ()
* Allow selecting default posting language instead of auto-detect

* Enable default language setting in credentials API

* Fix form saving
2018-06-17 18:57:31 +02:00
Eugen Rochko 7eec279c7f
Change language opt-out to language opt-in ()
* Switch filtered_languages to chosen_languages

* Adjust interface

* Remove unused translations
2018-06-17 13:54:02 +02:00
Eugen Rochko ca85658975
Add autofollow option to invites ()
* Add autofollow option to invites

* Trigger CodeClimate rebuild
2018-06-15 18:00:23 +02:00
Eugen Rochko 9b9e96eae5
Add "Edit profile" link to public profile page, increase bottom padding () 2018-06-07 22:40:55 +02:00
Yamagishi Kazutoshi c0fc4e9935 Remove unnecessary underline on accounts table () 2018-06-04 13:09:36 +02:00
Eugen Rochko 40ef46dbef
Display only domain of report account if remote under comment () 2018-05-21 17:33:20 +02:00
Ash Furrow 50db106252 Disables autocorrect/autocapitalize on remote username field. () 2018-05-19 19:36:23 +02:00
Eugen Rochko 93c66f0c03
In footer, replace text "Mastodon" with logo () 2018-05-19 16:10:55 +02:00
Eugen Rochko 1e02dc8715
Add preference to hide following/followers lists ()
* Add preference to hide following/followers lists

- Public pages
- ActivityPub collections (does not return pages but does give total)
- REST API (unless it's your own) (does not federate)

Fix 

* Add preference

* Add delegation

* Fix issue

* Fix issue
2018-05-18 02:26:51 +02:00
ThibG 0f2fbf7d05 Improvements to toots display in admin view ()
* Distinguish boosts from original statuses in the admin panel (fixes )

* Show the “show more” button in admin view to make CWs clearer (fixes )

* Make content warnings swag
2018-05-12 17:44:15 +02:00
Yamagishi Kazutoshi bd5f57cbc3 Strip tags from og:description on public tag page () 2018-05-10 14:38:40 +02:00
Yamagishi Kazutoshi 0a7e8320b2 Add alternate for RSS () 2018-05-10 14:38:19 +02:00
Yamagishi Kazutoshi e0b1e17bd0 Show media modal on public timeline () 2018-05-08 13:33:09 +02:00
Eugen Rochko 42cd363542
Bot nameplates ()
* Store actor type in database

* Add bot nameplate to web UI, add setting to preferences, API, AP
Fix 

* Fix code style issues
2018-05-07 09:31:07 +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
Shuhei Kitagawa bd10a7e480 Add resend confirmation for admin ()
* Add confirmations_controller#resend

* Add tests for confirmations_controller#resend

* Add translations
2018-05-06 10:59:03 +02:00
Eugen Rochko 39efc6d533
Add hint about 7 day cooldown for archive takeout () 2018-05-06 10:53:10 +02:00
Eugen Rochko b611dbac79
Add contact e-mail hint to 2FA login form () 2018-05-06 10:52:36 +02:00
Eugen Rochko c7d1a2e400
Improve admin UI for accounts ()
* Improve design of account statuses admin UI (consistent with reports)

* Make account moderation notes look consistent with report notes

* i18n-tasks remove-unused

* Fix code style issues

* Fix tests
2018-05-05 23:06:29 +02:00
Eugen Rochko 2ef9d65052
Improve rendering of bio fields ()
Fix 
2018-05-05 00:55:09 +02:00
Eugen Rochko 251bbf9728
Show remote reports in admin UI as coming from domain rather than user ()
Fix 
2018-05-04 13:26:25 +02:00
Eugen Rochko 28bd4b9800
Serialize webfinger XML with Ox instead of Nokogiri ()
25ms -> 0.5ms
2018-05-02 22:28:46 +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
Yamagishi Kazutoshi 1663368724 Replace preload link tag to Rails helper () 2018-04-20 02:06:53 +02:00
Emelia Smith b9c35785e2 Reports: Merge contents and comment columns () 2018-04-19 15:39:54 +02:00
Emelia Smith 204d72fbe4 Feature: add count of account notes to reports ()
* Reports: Colocate account details with reports

* Reports: Add count of account moderation notes

Sometimes an account will be left with a note instead of the report, this adds a way to quickly see from a given report if this is the case.
2018-04-17 14:58:11 +02:00
Jennifer Kruse ef12a2b74c Able to deactivate invites if they aren't expired () 2018-04-17 13:52:08 +02:00
Eugen Rochko 07a7d5959c
Fix missing "Administered by" when timeline preview disabled () 2018-04-17 13:51:14 +02:00
ThibG 1c379b7ef4 Remove extra spaces from search API queries and public account headers (fixes ) () 2018-04-16 17:19:04 +02:00
Eugen Rochko 78ed4ab75f
Add bio fields ()
* Add bio fields

- Fix 
- Fix 
- Fix 

* Display bio fields in web UI

* Fix output of links and missing fields

* Federate bio fields over ActivityPub as PropertyValue

* Improve how the fields are stored, add to Edit profile form

* Add rel=me to links in fields

Fix 
2018-04-14 12:41:08 +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
Emelia Smith d9b62e34da Feature: Improve reports ui ()
* Further improvements to Reports UI

- Clean up notes display
- Clean up add new note form
- Simplify controller
- Allow reopening a report with a note
- Show created at date for reports
- Fix report details table formatting

* Show history of report using Admin::ActionLog beneath the report

* Fix incorrect log message when reopening a report

* Implement fetching of all ActionLog items that could be related to the report

* Ensure adding a report_note updates the report's updated_at

* Limit Report History to actions that happened between the report being created and the report being resolved

* Fix linting issues

* Improve report history builder

Thanks @gargron for the improvements
2018-04-10 20:27:59 +02:00
Emelia Smith 219a4423d8 Feature: Allow staff to change user emails ()
* Admin: Show unconfirmed email address on account page

* Admin: Allow staff to change user email addresses

* ActionLog: On change_email, log current email address and new unconfirmed email address
2018-04-10 09:16:06 +02:00
ThibG 1364e9e4ae Fix follow/unfollow buttons on public profile (fixes ) ()
* Fix follow/unfollow buttons on public profile

- Present non-logged users with web+mastodon:// URLs for remote accounts
- Present logged-in users with appropriate links (authorize_follows and
  remote_unfollows) for remote accounts

* Do not cache rendered cards if user is logged in
2018-04-08 13:40:22 +02:00
Eugen Rochko 07176fed37
Add contact account to landing page ("Administered by") () 2018-04-04 01:11:26 +02:00
Emelia Smith e85cffb236 Feature: Report improvements () ()
* Implement Assignment of Reports ()

* Change translation of admin.report.comment.label to "Report Comment" for clarity

As we'll soon add the ability for reports to have comments on them, this clarification makes sense.

* Implement notes for Reports

This enables moderators to leave comments about a report whilst they work on it

* Fix display of report moderation notes

* Allow reports to be reopened / marked as unresolved

* Redirect to reports listing upon resolution of report

* Implement "resolve with note" functionality

* Add inverse relationship for report notes

* Remove additional database querying when loading report notes

* Fix tests for reports

* Fix localisations for report notes / reports
2018-04-02 22:04:14 +02:00
Emelia Smith e7a1716701 Implement the ability for an Administrator or Moderator to remove an account avatar () 2018-04-02 13:45:07 +02:00
David Underwood 123a343d11 [WIP] Enable custom emoji on account pages and in the sidebar ()
Federate custom emojis with accounts
2018-04-01 23:55:42 +02:00
Akihiko Odaki fa310695fa Note if the user is already following the target when authorizing follow () 2018-03-24 12:50:41 +01:00
Jeroen 580835ab69 Invites: Add '1 week' as expire option ()
* Invites: Add '1 week' as expire option

IMO a max. of 1 day is too short. Not everyone has the time and motivation to use an invite in a 24 hour period. 1 week as a max. is I think a good compromise between convenience and security.

* Invites: Add '1 week' as expire option

IMO a max. of 1 day is too short. Not everyone has the time and motivation to use an invite in a 24 hour period. 1 week as a max. is I think a good compromise between convenience and security.

* Update en.yml
2018-03-24 12:50:14 +01:00
ThibG 6b76a6212d Display content warning in mail notification emails () 2018-03-19 20:12:20 +01:00
ThibG 357f9298bd Fix e-mail changed notification (fixes ) ()
In Devise::Mailer#email_changed, the new email might be in the email attr.
See: https://github.com/plataformatec/devise/blob/master/app/views/devise/mailer/email_changed.html.erb
2018-03-19 20:07:47 +01: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
Eugen Rochko 8bf3e750ab
Fix : Adjust RTL styles for landing page () 2018-03-13 08:14:08 +01:00
Eugen Rochko 4476a45444
Fix : Do not double html-encode page titles () 2018-03-10 11:43:20 +01:00
Eugen Rochko ff44b2e92d
Add missing meta description to profiles, some other SEO stuff ()
- Add missing meta description to profiles
- Add canonical rel link to landing page
- Remove linebreaks from title tags
- Add username to profile title
- Add toots/following/followers to profile description tags
- Add next/prev rel links to profiles
- Do not index follower/following variants of profiles
2018-03-09 00:35:07 +01:00
Eugen Rochko 5acd5315f2
Improve styling of closed registrations message, rename button ()
* Improve styling of closed registrations message, rename button

"Sign up on another server"

Fix 

* Adjust styling of closed registrations message
2018-03-08 11:10:37 +01:00