Commit graph

1713 commits

Author SHA1 Message Date
google-labs-jules[bot]
90dbc05bd3 feat: Display list of remote users who liked a post
This change implements the ability to display a list of remote users
who have liked a post on an individual entry page (collection post).

Key changes include:
- Added a `RemoteLikers []*RemoteUser` field to the `PublicPost` struct in `posts.go`.
- Implemented a new database function `getRemoteLikersForPost(postID string)` in `database.go` to fetch likers by joining `remote_likes` and `remoteusers` tables.
- Modified the `GetPost` function in `database.go` to call `getRemoteLikersForPost` and populate the `RemoteLikers` field.
- Updated the `templates/collection-post.tmpl` template to iterate over `RemoteLikers` and display each user's handle as a link to their profile.
2025-05-22 07:52:11 +00:00
Matt Baer
db66a885fb
Merge pull request #1134 from sahilmulla/fix-edit-link
Fix edit link missing on mobile browser
2025-02-18 16:02:15 -05:00
Matt Baer
79a66ff140 Merge branch 'develop' into fix-edit-link 2025-02-18 16:00:16 -05:00
Matt Baer
4601951bbf
Merge pull request #1035 from writefreely/dependabot/go_modules/github.com/microcosm-cc/bluemonday-1.0.27
Bump github.com/microcosm-cc/bluemonday from 1.0.26 to 1.0.27
2025-02-18 14:31:06 -05:00
dependabot[bot]
e1db89311d
Bump github.com/microcosm-cc/bluemonday from 1.0.26 to 1.0.27
Bumps [github.com/microcosm-cc/bluemonday](https://github.com/microcosm-cc/bluemonday) from 1.0.26 to 1.0.27.
- [Release notes](https://github.com/microcosm-cc/bluemonday/releases)
- [Commits](https://github.com/microcosm-cc/bluemonday/compare/v1.0.26...v1.0.27)

---
updated-dependencies:
- dependency-name: github.com/microcosm-cc/bluemonday
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-18 19:30:40 +00:00
Matt Baer
f7966996d7
Merge pull request #1129 from writefreely/compile-darwin-arm64
Build for macOS arm64
2025-02-18 14:28:51 -05:00
Matt Baer
a7fa19f2e4
Merge pull request #1247 from eyberg/develop
adding a link to the nanos unikernel package repository
2025-02-12 11:48:17 -05:00
Ian Eyberg
7b5d583b76 updating pkg location 2025-02-11 16:31:22 -08:00
Ian Eyberg
b765c02166 adding a link to the nanos unikernel package repository 2025-01-27 17:19:35 -08:00
Matt Baer
4504617c1a
Merge pull request #1165 from c7io-dev/patch2
Fix admin/user pagination
2025-01-24 15:48:37 -05:00
Matt Baer
17039e620e
Merge pull request #1128 from writefreely/archive-page
Add Archive page

Closes T873
2025-01-24 15:41:15 -05:00
Matt Baer
fbf505cff0 Merge branch 'develop' into archive-page 2025-01-24 15:40:25 -05:00
Matt Baer
3966f9fa40 Update date in README 2025-01-17 15:37:32 -05:00
Matt Baer
387ddac892 Merge branch 'develop' of github.com:writefreely/writefreely into develop 2025-01-17 15:36:33 -05:00
Matt Baer
e3b94d7fb5
Merge pull request #1237 from c7io-dev/patch3
Fix api/posts routing as previous change breaks existing function
2025-01-17 15:36:07 -05:00
Matt Baer
121a21d900 Merge branch 'develop' of github.com:writefreely/writefreely into develop 2025-01-17 15:29:37 -05:00
snullp
eab66ee5fc Fix api/posts routing as previous changes breaks existing function 2025-01-05 19:32:46 +00:00
snullp
b643e0520f Fix admin/user pagination
Integer division floor the page count but the ceil operation is needed.
Implemented without float conversion.
2024-12-09 05:22:21 +00:00
Matt Baer
f88aa393c5
Merge pull request #1122 from writefreely/ap-likes
Support ActivityPub Likes

Closes T906
2024-12-01 18:34:31 -05:00
Matt Baer
eca7bcda0a Fix comment in activitypub.go 2024-12-01 18:30:32 -05:00
Matt Baer
6b4179fa01 Fix INSERT remote_likes query for SQLite 2024-12-01 18:15:58 -05:00
Matt Baer
e29f371232
Merge pull request #1127 from DonPiotr/develop
Fix two error messages: user create and user create --admin
2024-10-30 13:31:18 -04:00
sam-pc
b7de165b76 Fix edit link missing on mobile browser 2024-10-28 17:24:14 +05:30
Matt Baer
c046dd04e7 Build for macOS arm64
Part of #1003
2024-10-24 14:38:38 -04:00
Matt Baer
6384f4667b
Merge pull request #1103 from vtyeh/drafts-with-load-more-have-broken-links-1054
Fix broken links in drafts loaded with "load more" #1054
2024-10-24 11:39:36 -04:00
vtyeh
82de4558de Link title directly to post page 2024-10-23 10:32:04 -07:00
vtyeh
ec7d336bc2 Update title link to be dynamic with new singleUser bool 2024-10-22 13:42:17 -07:00
Matt Baer
6d57d9d6a1 Fix trailing whitespace in database.go 2024-10-22 15:56:48 -04:00
Matt Baer
7fbf49a0f0 Fix whitespace in modified LESS files 2024-10-22 15:56:32 -04:00
Matt Baer
76818287d6 Add Archive page for all blogs
This adds a special page at `blog-url/archive/` that lists all posts
on a blog in descending order.

It includes stylesheet changes. Update with `make ui`.

Ref T873
2024-10-22 15:56:14 -04:00
Matt Baer
646fff775c
Merge pull request #1034 from writefreely/dependabot/go_modules/github.com/go-sql-driver/mysql-1.8.1
Bump github.com/go-sql-driver/mysql from 1.7.1 to 1.8.1
2024-10-22 15:06:44 -04:00
Matt Baer
ec8e0b4a8b
Merge pull request #1036 from writefreely/dependabot/go_modules/github.com/fatih/color-1.17.0
Bump github.com/fatih/color from 1.16.0 to 1.17.0
2024-10-22 15:05:03 -04:00
Matt Baer
d1c4efc143
Merge pull request #988 from Anish-Parkhi/fix-response-text-plain
fix: removed unnecessary strict post number checking causing error
2024-10-22 14:33:58 -04:00
don Piotr Talarczyk
c2ea61c82e Fix two error messages: user create and user create --admin 2024-10-22 20:09:43 +02:00
Matt Baer
6e01bb7d94 Remove length restriction on other methods on /api/posts/{post} 2024-10-22 14:04:05 -04:00
Matt Baer
94f12dfc29 Fix bad regex on /api/posts/{post} endpoint 2024-10-22 14:02:52 -04:00
Matt Baer
9421cfd422
Merge pull request #1116 from sahilmulla/fix-glibc
Fix glibc issue
2024-10-22 10:42:36 -04:00
Matt Baer
8193a41082 Fix post ID extraction regex, actually
Ref T906
2024-10-21 12:37:37 -04:00
Matt Baer
1b20d3704f Catch errors around Like/Unlike actions
Previously, we'd get nil panics or insert blank post IDs

Ref T906
2024-10-21 12:23:39 -04:00
Matt Baer
9c0a2f8b13 Fix post ID extraction regex
Ref T906
2024-10-21 12:18:21 -04:00
Matt Baer
74a0947fdb Fix whitespace in collection-post.tmpl 2024-10-21 11:58:23 -04:00
Matt Baer
984e5bc415 Show number of Likes on posts and Stats pages
Ref T906
2024-10-21 11:49:04 -04:00
Matt Baer
7f1cc6bf8f Support un-liking posts from the fediverse
Ref T906
2024-10-21 11:40:18 -04:00
Matt Baer
0ce5d3ba26 Accept Like activities from the fediverse
This includes database changes; update with `writefreely db migrate`.

Ref T906
2024-10-21 11:28:35 -04:00
Matt Baer
8d3d7419cd
Merge pull request #1061 from writefreely/dependabot/go_modules/golang.org/x/net-0.30.0
Bump golang.org/x/net from 0.26.0 to 0.30.0
2024-10-21 09:43:53 -04:00
dependabot[bot]
6b47fd9e35
Bump golang.org/x/net from 0.26.0 to 0.30.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.26.0 to 0.30.0.
- [Commits](https://github.com/golang/net/compare/v0.26.0...v0.30.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-21 13:41:58 +00:00
Matt Baer
25808c7281
Merge pull request #1062 from writefreely/dependabot/go_modules/golang.org/x/crypto-0.28.0
Bump golang.org/x/crypto from 0.24.0 to 0.28.0
2024-10-21 09:40:36 -04:00
sam-pc
2f37c666fb Fix glibc issue 2024-10-21 09:59:58 +05:30
vtyeh
4f3bacb182 Fix broken links in drafts loaded with "load more" by dynamically creating edit link based on single_user bool in config.ini 2024-10-15 16:23:28 -07:00
Matt Baer
71033ecc3d
Merge pull request #1038 from leo9800/docker-prod
Docker for Production
2024-10-09 15:46:12 -04:00