Commit Graph

84 Commits

Author SHA1 Message Date
Matt Baer 334d499fb3
Merge pull request #508 from writefreely/lang-posts-filter
Support filtering blog posts by language

Closes T805
2023-09-22 12:53:20 -04:00
Matt Baer 264bef03b1 Support rel=me verification on blogs
This allows setting a URL, and then renders a <link> element
in the head of the blog. It requires a database migration.

Ref T744
2023-09-21 19:04:34 -04:00
Matt Baer 94bb566e4f
Merge pull request #766 from writefreely/fix-ld-json-response
Correctly respond to application/ld+json requests
2023-09-21 17:03:18 -04:00
Matt Baer d3f312a1e2 Use Chorus template (if configured) when filtering by language
Ref T805
2023-09-21 16:59:32 -04:00
Matt Baer ebeb45ac5a Support pagination when viewing language-filtered posts
Ref T805
2023-09-21 16:58:44 -04:00
Matt Baer 3dc515c249 Merge branch 'develop' into lang-posts-filter 2023-09-21 16:38:48 -04:00
Matt Baer 8f03da0ec1 Correctly respond to application/ld+json requests
This returns ActivityStreams objects when the Accept header is
`application/ld+json; profile="https://www.w3.org/ns/activitystreams"`,
per the ActivityPub spec.

Fixes #564
2023-09-21 16:16:57 -04:00
Matt Baer 54eb2db14d Fix tagged posts falsely showing Older link 2023-07-08 00:31:02 -04:00
Matt Baer e65086b635 Merge branch 'develop' into paginate-tag-collection 2023-07-08 00:01:40 -04:00
Matt Baer 8684ff04a4 Merge branch 'develop' into markdown-descriptions 2022-12-25 00:47:41 -05:00
Matt Baer d08f067e9c Change copyright notices to Musing Studio LLC
A Bunch Tell is now Musing Studio.
2022-11-10 23:49:16 -05:00
Matt Baer a0e936ee1b Support Markdown and rel=me links in blog descriptions
Ref T874 T744
2022-01-18 16:43:17 -05:00
Matt Baer 414d5b0a1c Add pagination routes on lang post filter
Ref T805
2021-09-16 14:23:35 -04:00
Matt Baer f4977c7a34 Support filtering blog posts by language
Ref T805
2021-09-13 18:36:36 -04:00
Matt Baer e91ffe2dcb Remove additional slash in /feed/ redirect 2021-06-23 16:50:23 -04:00
Matt Baer c05f7056c4 Fix collection rendering in Chorus mode 2021-06-09 10:04:28 -04:00
Matt Baer e42ba392c6 Support Web Monetized split content
Ref T770
2021-06-07 15:52:24 -04:00
Matt Baer 895e04c8c4
Merge pull request #443 from writefreely/minor-fixes
Minor WYSIWYG and miscellaneous fixes
2021-04-30 11:31:06 -04:00
Matt Baer 967ee9679c Support international domain names
This internally converts the configured host name into its Punycode ASCII
representation, while showing users the correct Unicode domain name.
2021-04-26 11:18:51 -04:00
Matt Baer 439f8bd262
Merge pull request #444 from writefreely/log-out-pass-blog
Support logging out of password-protected blogs
2021-04-12 14:11:12 -04:00
Matt Baer 484d2736ce Update repo URL to writefreely org
From the writeas org on GitHub.
2021-04-06 17:24:07 -04:00
Matt Baer 50c4e944a4 Merge branch 'develop' into minor-fixes 2021-04-06 12:30:37 -04:00
Matt Baer 5a3e8d59b6 Support logging out of password-protected blogs
Closes T492
2021-03-29 20:55:21 -04:00
Matt Baer 3e282e4c85 Rename MonetizationPointer field to Monetization 2021-03-25 13:02:35 -04:00
Matt Baer 9b336dee8c Fix instance-wide actor lookup
This skips the silenced-user check.

Ref T820
2021-03-08 12:54:50 -05:00
Donald Feury 9ed2687543 Added TagCollectionPage
* Implements PrevPageURL and NextPageURL
* This allows the collection-tag template to get proper urls for
  paginating using tags.
2021-02-24 23:49:15 -05:00
Donald Feury 530439772d Add Pagination to Tags Collection
Mostly copied the logic for pagination from non tag collection
2021-02-24 23:00:21 -05:00
Matt Baer e1cde913e2
Merge pull request #369 from writeas/web-monetization
Support Web Monetization
2020-10-06 16:22:28 -04:00
Matt Baer 2768ea9414 Make Monetization optional
Some WriteFreely instances are completely private, and thus have no need for public-
oriented features like Web Monetization. Like federation, this gives admins control
over whether or not the feature is enabled for users.

Ref T773
2020-09-30 15:18:21 -04:00
Matt Baer ec7b299fd3 Enable updating WM payment pointer via API and Customize page
Ref T773
2020-09-30 14:40:13 -04:00
Colin Axner 678653ac30 update getCollectionPage
Update getCollectionPage godoc and reduce logic and variable assignments
2020-09-25 16:47:31 +02:00
Matt Baer 13eb51913e Support Web Monetization via backend attribute
This supports a new `monetization_pointer` collection attribute.
When present, we include the `monetization` meta tag on all
collection pages.
2020-08-19 09:28:44 -04:00
Matt Baer a25664bb97 Support post signatures
This enables users to add a signature to all blog posts, and update it from a single location.

Requires database migration with: writefreely db migrate

Closes T582
2020-06-23 16:24:45 -04:00
Matt Baer 7023b74d12 Update calls and vars for Invites and elsewhere
Ref T661
2020-02-09 11:24:48 -05:00
Matt Baer 629d40b549 Fix collection rendering after merge 2020-02-09 11:24:16 -05:00
Matt Baer 468bbf2187 Merge branch 'develop' into rename-account-suspend 2020-02-09 11:14:14 -05:00
Matt Baer 867eb53b35 Show 404 when remote user not found
This notifies the user that the remote user doesn't exist, instead of
showing a blank page.

Ref T627
2020-02-08 12:55:10 -05:00
Matt Baer bb63e64883 Clean up getProfilePageFromHandle
- Export the func
- Remove commented-out code
- Use log, not fmt for debug messages
- Remove named return parameters
- Use standard var naming schemes
- Fix spacing in queries and remove unnecessary chars
2020-02-08 12:10:47 -05:00
Matt Baer 68d63d3fef Merge branch 'develop' into activitypub-mentions 2020-02-08 11:51:18 -05:00
Matt Baer ff33c59f27
Merge pull request #180 from writeas/cache-control
Add Cache-Control headers on AP endpoints

Closes T693
2020-01-31 12:00:47 +01:00
Matt Baer 812136357e Move Format from DisplayCollection to CollectionObj 2020-01-09 16:48:22 -05:00
Matt Baer 6f6204a849 Return 404 for suspended pass-protected colls
Previously, any password-protected collection on a suspended account
would prompt visitors for a password, and *then* take them to the "not
found" page. This fixes that.
2019-12-17 13:02:21 -05:00
Matt Baer d8df15855c Merge branch 'develop' into activitypub-mentions 2019-11-26 13:19:20 -05:00
Matt Baer bd99044e9c Fix 500 on tags page
This fixes a panic from a nil user when calling u.IsSuspended().
Instead, this checks and calls IsSuspended() on `owner`.
2019-11-12 20:01:14 +09:00
Rob Loranger 7e014ca659
Rename Suspend status to Silence
This changes all variables and functions from using Suspend{ed} to using
Silence{d} as well as documentation, errors and logging.
2019-11-11 15:25:19 -08:00
Matt Baer 53586d9cb8 Merge branch 'develop' into T661-disable-accounts 2019-11-12 01:46:37 +09:00
Matt Baer 7f96e8c384 Rename UserSuspended to UserSilenced
Some of the work needed to have the backend match user-facing wording.

Ref T661
2019-11-12 00:41:25 +09:00
Matt Baer f7550a0da8 Change more suspension check logic
From u.Status == UserSuspended to u.IsSuspended()

Ref T661
2019-11-12 00:04:36 +09:00
Rob Loranger f85f0751a3
address PR comments
- update error messages to be correct
- move suspended message into template and include for other pages
- check suspended status on all relevant pages and show message if
logged in user is suspended.
- fix possible nil pointer error
- remove changes to db schema files
- add version comment to migration
- add UserStatus type with UserActive and UserSuspended
- change database table to use status column instead of suspended
- update toggle suspended handler to be toggle status in prep for
possible future inclusion of further user statuses
2019-10-25 12:04:24 -07:00
Matt Baer 9873fc443f Merge branch 'develop' into T661-disable-accounts 2019-10-24 13:22:26 -04:00