Joël Quenneville
8a67fb5eca
DRY up reblog vs original status check
...
Checking reblog vs original status was happening in multiple places
across the app. For views, this logic was encapsulated in a helper
method named `proper_status` but in the other layers of the app, the
logic was duplicated.
Because the logic is used at all layers of the app, we extracted it into
a `Status#proper` method on the model and changed all uses of the logic
to use this method. There is now a single source of truth for this
condition.
We added test coverage to untested methods that got refactored.
8 years ago
Eugen
ef7240169a
Merge branch 'master' into feature-customized-default-locale
8 years ago
Jantso Porali
fb0ce9d38d
Update Finnish translations, add sample Minio config ( #954 )
8 years ago
Eugen Rochko
9bb84337a7
Allow setting of default language through config
...
Setting of locale in controller extracted to Localized concern,
the doorkeeper authorized applications controller moved under
custom namespace with inclusion of Localized, which resolves the
"it sometimes appears in a different random language" bug
8 years ago
Eugen
1781fcaea4
Force UTF8 encoding on generated XML ( #1140 )
8 years ago
Eugen
24c77e57b2
Rewrite Atom generation from stream entries to use Ox instead of Nokogiri ( #1124 )
...
* Rewrite Atom generation from stream entries to use Ox instead of Nokogiri::Builder
StreamEntry is now limited to only statuses, which allows some optimization. Removed
extra queries on AccountsController#show. AtomSerializer instead of AtomBuilderHelper
used in AccountsController#show, StreamEntriesController#show, StreamEntryRenderer
and PubSubHubbub::DistributionWorker
PubSubHubbub::DistributionWorker moves n+1 DomainBlock query to PubSubHubbub::DeliveryWorker
instead.
All Salmon slaps that aren't based on StreamEntry still use AtomBuilderHelper and Nokogiri
* All Salmon slaps now use Ox instead of Nokogiri. No touch from status on account
8 years ago
Eugen Rochko
353a30810c
New admin setting: open/close registrations, with custom message, from the admin UI
8 years ago
Eugen Rochko
c9ffa7ab1d
Add basic logging of who resolved report
8 years ago
Eugen Rochko
ceaafb22d3
When taking action on a report (silence/suspend), it dismisses all other
...
reports for that user automatically
8 years ago
Eugen Rochko
6ebe31e716
Make default admin UI page reports. Add admin UI for creating a domain block
8 years ago
Eugen Rochko
1ee4c6415c
Catching rack timeout from rails doesn't work
8 years ago
Eugen Rochko
00e99e58db
Add proper error page for request timeouts
8 years ago
Eugen Rochko
e407ed24a6
Fix landing page sign up form ignoring username field
8 years ago
Eugen Rochko
355b9278d5
Fix some views still not using counter caches
8 years ago
Eugen Rochko
be9accbacc
Fix #700 - hide spoilers on static pages
8 years ago
Eugen Rochko
244da78105
Import feature for following/blocking lists (addresses #62 , #177 , #201 , #454 )
8 years ago
Eugen Rochko
96e58cf289
Add counter caches for a large performance increase on API requests
8 years ago
Eugen Rochko
a4ce8b09fb
Fix #690 - Webfinger should handle new shortform profile URLs now (nice)
8 years ago
Eugen Rochko
74fb333eb7
Fix up some localizations
8 years ago
Eugen Rochko
6cce7c58a0
Fix public profile pagination links
8 years ago
Eugen Rochko
0ef0ea3e34
Fix #675 - return created_at in notifications API
8 years ago
Eugen Rochko
b3cb765a94
Prettier account and stream entry URLs
8 years ago
Eugen Rochko
c78e325f39
Web UI support for the new omnisearch
8 years ago
Eugen Rochko
3893f75a51
New API method: /api/v1/search
...
Returns accounts, statuses, hashtags arrays
8 years ago
Eugen Rochko
6e561f6544
Don't list "direct" under default post privacy settings
8 years ago
Eugen Rochko
8785e271bf
Improved landing page
8 years ago
Eugen Rochko
47c74efa85
Add landing strip
8 years ago
Eugen Rochko
b339e488fe
Export follow/block lists as CSV
8 years ago
Eugen Rochko
450f6cbcac
Start page links a bit more readable
8 years ago
shel
5c7b222769
Promote Apps ( #670 )
...
"Various apps are available" is now a hyperlink
8 years ago
Eugen Rochko
c97f817e40
Fix #525 - Add instance information API
8 years ago
Eugen
6599b27b2b
Merge branch 'master' into mastodon-site-api
8 years ago
Eugen Rochko
4b93cf88e5
Fix #431 - convert gif to webm during upload. Web UI treats them like it did
...
before. In the API, attachments now can be either image, video or gifv. Gifv
is to be treated like images in terms of behaviour, but are videos by file
type.
8 years ago
Eugen Rochko
0cb5a2a0a7
Add digest e-mails
8 years ago
Kit Redgrave
4554ccd5d0
Mute button progress so far. WIP, doesn't entirely work correctly.
8 years ago
Eugen Rochko
edf03c8cd9
Fix #186 - Add RTL support to the compose form textarea and statuses output
8 years ago
Kibigo
b39356835b
Adds site metadata access to the API
8 years ago
Eugen Rochko
a741049a77
Fix #104 - Style OAuth authorized applications page
...
Add ability to search accounts by display name
8 years ago
Eugen Rochko
014cb5e998
Quick fix for avatars with the same URL not being perceived as updated and in need of re-download
8 years ago
Eugen Rochko
0613d66df8
Add UI to view report details, remove reported statuses, quick links to resolve/silence/suspend from report
8 years ago
Eugen Rochko
6917e53fe0
Adding index overview for reports in admin UI
8 years ago
Eugen Rochko
513a78d67b
Fix admin UI for accounts somewhat
8 years ago
Eugen Rochko
2cc31b3194
Adding POST /api/v1/reports API, and a UI for submitting reports
8 years ago
Eugen Rochko
a83dc927d8
Fix #587 - Display TOTP secret next to QR code
8 years ago
Eugen Rochko
f09e8f5c40
Add "next" link to Atom feeds
8 years ago
Eugen Rochko
f9f8f52fe9
Stop trying to shoehorn all Salmon updates into the poor database-connected
...
StreamEntry model. Simply render Salmon slaps as they are needed
8 years ago
Eugen Rochko
b612b57b5d
Improve public tag page
8 years ago
Eugen Rochko
32580cc661
Site title is now a setting
8 years ago
shel
059d21c0fe
Add link to other instances list
...
This should help federation
8 years ago
Eugen
7037774d6e
Merge pull request #603 from evanminto/activitypub-account
...
Expose ActivityStreams 2.0 representation of accounts
8 years ago
Evan Minto
6ed6544332
Add AS2 format to RABL files
8 years ago
Eugen Rochko
b1f2683ecc
Add API modifiers to limit returned toots from public/hashtag timelines
...
to only those from local users; Add link to "extended information" to
getting started in the UI; Add defaults for posting privacy; Change
how publish button looks depending on posting privacy chosen
8 years ago
Evan Minto
1b42dc495c
Add trailing newline
8 years ago
Evan Minto
3c24673086
Simplify RABL
8 years ago
Evan Minto
db7affbf5b
Reuse existing controller and route
8 years ago
Eugen Rochko
419d2fd5a9
Fix #552 - Replace image links with image icons in status text in the UI
8 years ago
Eugen Rochko
6f8e499fd0
No replies filter on home timeline no longer hides self-replies
8 years ago
Evan Minto
b56d24ed71
Add an account endpoint for ActivityPub and link to it on HTML profile pages
8 years ago
hoodie
8d6aa92b5e
untested!! spoiler hotfix for replies
...
untested, my vagrant is bugged again, submitted at gargron's request
8 years ago
Eugen Rochko
9bd2b6be86
Make the streaming API also handle websockets (because trying to get the browser EventSource interface to
...
work flawlessly was a nightmare). WARNING: This commit makes the web UI connect to the streaming API instead
of ActionCable like before. This means that if you are upgrading, you should set that up beforehand.
8 years ago
Eugen Rochko
38b7551359
Add "open in web" link to detailed public status pages
8 years ago
Eugen Rochko
c58da52e9f
Split 2FA login into two prompts
8 years ago
Eugen Rochko
557de8e24c
Update settings to re-use admin layout, one big navigation tree, improve settings forms
8 years ago
Eugen Rochko
9b8670c939
Added optional two-factor authentication
8 years ago
Eugen Rochko
922588157c
Fix #537 - opengraph description should display spoiler text when present
8 years ago
Eugen Rochko
959e064186
Instead of using spoiler boolean and spoiler_text, simply check for non-blank spoiler_text
...
Federate spoiler_text using warning attribute on <content /> instead of a <category term="spoiler" />
Clean up schema file from accidental development migrations
8 years ago
blackle
e25fc71c2c
Implement a click-to-view spoiler system
8 years ago
Eugen Rochko
77a76d5171
Domain blocks now have varying severity - auto-suspend vs auto-silence
8 years ago
Eugen Rochko
2c29cc400e
Improve error page layouting. 500 page has to stay static because it's
...
used from nginx when Rails fails.
8 years ago
Eugen Rochko
280348f1e0
Merge branch 'fix/error-pages' of https://github.com/ineffyble/mastodon into ineffyble-fix/error-pages
8 years ago
Eugen Rochko
f748a91ec7
Fix #463 - Fetch and display previews of URLs using OpenGraph tags
8 years ago
Eugen Rochko
a6bf7b4777
Fix #487
8 years ago
Eugen Rochko
11117f5aec
Fix #466 - when logged in, make "get started" link to the frontpage instead of sign up
8 years ago
Eugen Rochko
5d88ef90c9
Fix tests, add applications to eager loading/cache for statuses, fix
...
application website validation, don't link to app website if website isn't set,
also comment out animated boost icon from #464 until it's consistent with non-animated version
8 years ago
Eugen Rochko
3a957e127a
Merge branch 'feature/toot-app-source' of https://github.com/ineffyble/mastodon into ineffyble-feature/toot-app-source
8 years ago
Effy Elden
21c888fefd
Add a textual 'Back to Mastodon' link in footer of settings pages
8 years ago
Effy Elden
c10a41e89e
Add nice error page for CSRF errors/cookie issue, and fix error page handling altogether
8 years ago
Effy Elden
6d333d9fc6
Merge branch 'feature/toot-app-source' of github.com:ineffyble/mastodon into feature/toot-app-source
8 years ago
Effy Elden
2c042fe57f
Test for presence of Application in haml before trying to render details, to fix errors identified by CI
8 years ago
Effy Elden
e751dd669a
Fix typo in rel
8 years ago
Effy Elden
8e0c1914fb
Add tracking of OAuth app that posted a status, extend OAuth apps to have optional website field, add application details to API, show application name and website on detailed status views. Resolves #11
8 years ago
Eugen Rochko
8442a176c5
Improve extended about page layout
8 years ago
Eugen Rochko
f2667139ad
Adding about/more page with extended information that can be set up by an admin
8 years ago
Eugen Rochko
533448be42
Add extended about page stub
8 years ago
Eugen Rochko
1a30737ff5
Add settings for contact information
8 years ago
Eugen Rochko
7e7c2bbb0f
Migrate from ledermann/rails-settings to rails-settings-cached which allows global settings
...
with YAML-defined defaults. Add admin page for editing global settings. Add "site_description"
setting that would show as a paragraph on the frontpage
8 years ago
Eugen Rochko
1a77ccb668
Fix #457 - escape JSON in INITIAL_STATE (this bug only ever allowed a user to xss themselves rather than anyone else)
8 years ago
Effy Elden
ad61a21752
Update the Mastodon repository URL from Gargron/ to tootsuite/ in various places
8 years ago
Eugen
efd4565389
Merge pull request #450 from blackle/master
...
simplify emojification on public pages with .emojify class
8 years ago
blackle
57e496e1bc
simplify emojification on public pages with .emojify class
8 years ago
Eugen Rochko
0c0d4b7c92
Fix sandboxed iOS login again
8 years ago
Eugen Rochko
4293e132d1
Persist UI settings, add missing localizations for German
8 years ago
Eugen Rochko
c1c814e6a1
Improve initialState loading
8 years ago
Eugen Rochko
26390b1997
Clean up h-card mess of divs
8 years ago
Eugen Rochko
ecd7a46f98
Fix h-card classes and remote follow button appearing when it shouldn't
8 years ago
Greg V
8d6361b40b
Add Microformats2 markup
...
h-feed, h-card and h-entry
8 years ago
Effy Elden
fe31b43b75
Add twitter:card metatag to enable Twitter Cards support
8 years ago
Eugen Rochko
6ef2b5d1c7
Fix admin UI not loading JS, make sure to strip "acct:" out of remote account's usernames when authorizing follow
8 years ago
Eugen Rochko
df2f14d2dd
Adding remote follow button
8 years ago
Eugen Rochko
6a20c13009
Add API for retrieving favourites
8 years ago