Eugen
c3f2975fa4
Merge pull request #1183 from thoughtbot/cp-post-status-service-specs
...
Add specs for PostStatusService
8 years ago
Eugen
29a092d6c4
Merge pull request #1184 from thoughtbot/extract-proper-status
...
DRY up reblog vs original status check
8 years ago
Joël Quenneville
9fda277193
Implement pending specs on Status
...
Implement the two pending specs on `Status`: `reblogs_count` and
`favourites_count`.
8 years ago
Chad Pytel
1a82d2bde6
Use I18n for media attachment validation errors
...
These are currently user facing errors, but are not localized. This adds the
ability for these messages to be localized.
8 years ago
Chad Pytel
6a69f9ac65
Add specs for PostStatusService
...
This implements all pending specs, and adds additional coverage for the
following functionality:
* Normal status creation
* Creating a reply status
* Creating a sensitive status
* Creating a status with spoiler text
* A status with no spoiler text gets an empty string for spoiler text
* Creating a status with custom visibility
* Creating a status for an application
* Processing mentions
* Processing Hashtags
* Pinging PuSH hubs
* Crawling links
* Attaching media
8 years ago
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
Chad Pytel
31f01ad592
Add specs for media attachment validations
...
There are currently not specs for the two media validations that are performed
by `PostStatusService`. This adds specs for the validations that ensure that you
cannot attach more than four files, and that a status cannot have both image and
video attachments.
8 years ago
Eugen Rochko
cd68e54a7d
Split SalmonWorker into smaller parts, move profile updating into another job
8 years ago
Eugen Rochko
d9f1e07c6c
Fix spec
8 years ago
Eugen
744456cb55
Merge branch 'master' into add_more_tests_to_models
8 years ago
Eugen
4751381a24
Merge pull request #852 from peterkeen/email-whitelist-817
...
[#817 ] Add email whitelist
8 years ago
Samy KACIMI
3c5248ca20
Merge branch 'master' into add_more_tests_to_models
8 years ago
Samy KACIMI
630ba25d44
update account_spec
8 years ago
Samy KACIMI
9f80b2dd4e
add more tests to models
8 years ago
Kurtis Rainbolt-Greene
d6c7d89053
Quick attempt to get pull requests passing
8 years ago
Pete Keen
f28fcf9080
[ #817 ] Add email whitelist
...
This adds the ability to filter user signup with a whitelist
instead of or in addition to a blacklist.
Fixes #817
8 years ago
Eugen Rochko
c9ffa7ab1d
Add basic logging of who resolved report
8 years ago
Eugen Rochko
244da78105
Import feature for following/blocking lists (addresses #62 , #177 , #201 , #454 )
8 years ago
Eugen Rochko
a4ce8b09fb
Fix #690 - Webfinger should handle new shortform profile URLs now (nice)
8 years ago
Eugen Rochko
b3cb765a94
Prettier account and stream entry URLs
8 years ago
Eugen Rochko
9adf6e8736
Fix wrongful matching of last period in extended usernames
...
Fix anchor tags in some wikipedia URLs being matches as a hashtag
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
7413dcb28a
Fix #555 - Use a better URL parser
8 years ago
Eugen Rochko
2cc31b3194
Adding POST /api/v1/reports API, and a UI for submitting reports
8 years ago
Eugen Rochko
8550d32165
Adding more unit tests. Fixing Salmon slaps XML
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
db53bfd30e
Fix semantics of follow requests another slaps
8 years ago
Eugen Rochko
f05f545a58
Improve docs
8 years ago
Eugen Rochko
1e66536797
After FollowService, re-fetch remote account asynchronously, do nothing
...
if account lock info was up to date, otherwise re-do the FollowService
with now updated information
8 years ago
Eugen Rochko
59c8c2b28a
Make follow requests federate
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
8dfcb02bde
Add test
8 years ago
Eugen Rochko
d384845469
Fix #61 - Add list of blocked users to the UI; clean up failed push notifications API
...
Try to fix Travis CI setup
8 years ago
Eugen Rochko
2f126b1225
Removing failed push notification API, make context loads use cache
8 years ago
Eugen Rochko
727d236fcc
Cleaning up format of broadcast real-time messages, removing
...
redis-backed "mentions" timeline as redundant (given notifications)
8 years ago
Eugen Rochko
546423df0f
Add tests for new API
8 years ago
Eugen Rochko
d5a3d0aca2
Fix tests
8 years ago
Eugen Rochko
9327d05bf7
API for apps to register for push notifications
8 years ago
Eugen Rochko
cb33960e0e
Fix #204 , fix #515 - URL truncating is now a style so copypasting is not
...
affected, replaced onClick handler with onMouseUp/Down to detect text
selection not trigger onClick handler then
8 years ago
Eugen Rochko
77a76d5171
Domain blocks now have varying severity - auto-suspend vs auto-silence
8 years ago
Eugen Rochko
a75cada495
Fix oembed controller test
8 years ago
Eugen Rochko
f748a91ec7
Fix #463 - Fetch and display previews of URLs using OpenGraph tags
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
f2667139ad
Adding about/more page with extended information that can be set up by an admin
8 years ago
Effy Elden
ad61a21752
Update the Mastodon repository URL from Gargron/ to tootsuite/ in various places
8 years ago
Eugen Rochko
4293e132d1
Persist UI settings, add missing localizations for German
8 years ago
Jessica Stokes
b115602bb7
"Reblog" -> "boost" in more places
...
A couple of places were using "reblog" rather than "boost" - this updates them to match the web UI
8 years ago
Eugen Rochko
800f6cf6a3
Fix #390 - fix redirect after sign-up (to login page instead of homepage)
8 years ago
Eugen Rochko
6a20c13009
Add API for retrieving favourites
8 years ago