-
-
Notifications
You must be signed in to change notification settings - Fork 40
News feed of links shared across the fediverse #310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 18 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
2d0b126
Add news scoring columns and indexes to post_link
dahlia b3975d7
Add news link scoring model
dahlia f089c6d
Refresh news scores incrementally when a link is shared
dahlia 96ae357
Expose the news feed and link scores over GraphQL
dahlia ff0462f
Add news recompute mutation, status query, and periodic sweep
dahlia c036a50
web-next: Add the news feed page
dahlia 36e4082
web-next: Add the per-link news discussion page
dahlia 16299f4
web-next: Add the moderator news score recompute page
dahlia 8ba2911
Score news links only from public engagement and on deletes
dahlia f300218
Exclude bot-account shares from News
dahlia 937a23d
Damp repeated shares of the same link in News
dahlia 273874a
web-next: Add PostLink.discussionCount for the News feed
dahlia 433560e
web-next: Redesign the News feed card around the discussion
dahlia 99f040d
web-next: Add an inline opinion composer to the News discussion page
dahlia 755e57d
Add News moderation schema: score penalty + URL exclusions
dahlia fb2976d
Add News penalty + URL-exclusion model layer
dahlia 30f13f5
Expose News moderation over GraphQL
dahlia 9eaa9e5
web-next: Add News moderation UI (admin page + feed penalty control)
dahlia 58be855
Re-score parent stories when bulk-deleting their replies and quotes
dahlia 7bc2a1a
Decrement quotesCount when a federated quote is deleted
dahlia e8f0ce0
Order imports external-first in graphql news entry points
dahlia e157e18
Gate newsStory lookup to public news stories
dahlia 9aca26d
Enable --unstable-cron for the GraphQL server tasks
dahlia 05e58b2
Scope the sweep's exclusion pass to active links
dahlia e85c1a1
Describe the newsStory id argument
dahlia bb70d80
Reject a non-positive news page size
dahlia 5000367
web-next: Sort the news discussion page imports
dahlia f2a5006
web-next: Paginate discussion quotes and bound deep-link expansion
dahlia 20b320e
web-next: Fetch only the paginated connection in the discussion thread
dahlia cc3b706
web-next: Guard the discussion engagement-base URL parse
dahlia 247c1c9
web-next: Auto-paginate quotes too when following a deep link
dahlia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
drizzle/20260530050716_overrated_captain_cross/migration.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| ALTER TABLE "post_link" ADD COLUMN "score" double precision DEFAULT 0 NOT NULL;--> statement-breakpoint | ||
| ALTER TABLE "post_link" ADD COLUMN "weighted_mass" double precision DEFAULT 0 NOT NULL;--> statement-breakpoint | ||
| ALTER TABLE "post_link" ADD COLUMN "recency_component" double precision DEFAULT 0 NOT NULL;--> statement-breakpoint | ||
| ALTER TABLE "post_link" ADD COLUMN "post_count" integer DEFAULT 0 NOT NULL;--> statement-breakpoint | ||
| ALTER TABLE "post_link" ADD COLUMN "first_shared_at" timestamp with time zone;--> statement-breakpoint | ||
| ALTER TABLE "post_link" ADD COLUMN "latest_activity_at" timestamp with time zone;--> statement-breakpoint | ||
| ALTER TABLE "post_link" ADD COLUMN "score_updated" timestamp with time zone;--> statement-breakpoint | ||
| CREATE INDEX "idx_post_link_score" ON "post_link" ("score" desc,"id" desc) WHERE ("latest_activity_at" is not null);--> statement-breakpoint | ||
| CREATE INDEX "idx_post_link_first_shared" ON "post_link" ("first_shared_at" desc,"id" desc) WHERE ("latest_activity_at" is not null);--> statement-breakpoint | ||
| CREATE INDEX "idx_post_link_weighted_mass" ON "post_link" ("weighted_mass" desc,"id" desc) WHERE ("latest_activity_at" is not null); | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.