Delete local object on fetch when receiving HTTP 410, split fetcher (fixes #1256) #154
Closed
nutomic
wants to merge 2 commits from
deletion-on-fetch
into move_views_to_diesel
pull from: deletion-on-fetch
merge into: LemmyNet:move_views_to_diesel
LemmyNet:main
LemmyNet:update_read_comments_on_comment_creation
LemmyNet:fix_proxy_images_2
LemmyNet:blocked_users_inbox
LemmyNet:db-fields-sensitive
LemmyNet:fix_proxy_images_1
LemmyNet:use_binstall_for_diesel_cli
LemmyNet:thumbnail_sizes
LemmyNet:add_log_triggers
LemmyNet:dont_publish_perf
LemmyNet:liked_only_self_filter
LemmyNet:fix_deleted_post_search_results
LemmyNet:fix_community_outbox
LemmyNet:fix_post_aggregates_indexes
LemmyNet:fix_post_comment_modlog_filtering
LemmyNet:fix_domain_unique_blocking
LemmyNet:upgrade_deps_21
LemmyNet:renovate/configure
LemmyNet:add_dependabot
LemmyNet:create_local_image_view
LemmyNet:convert_firsts_to_optionals
LemmyNet:fix_custom_thumbnail_updating
LemmyNet:cleanup_lemmy_results
LemmyNet:change_vote_display_mode_defaults
LemmyNet:fix_comment_instance_block
LemmyNet:try_fix_release_1
LemmyNet:fix_tag_failure_notifs
LemmyNet:remove_latest_tag_pgformatter
LemmyNet:remove_cardano
LemmyNet:fix_private_message_report_order
LemmyNet:delete_local_image_on_delete_account
LemmyNet:woodpecker_events_1
LemmyNet:list_images
LemmyNet:add_creator_banned_from_community_to_voteview
LemmyNet:fix_tests_2
LemmyNet:fix_mark_comment_as_read
LemmyNet:fix_clippy_5
LemmyNet:upgrade_deps_20
LemmyNet:remove_sticky_test
LemmyNet:add_coc_to_issue_templates
LemmyNet:add_git_cliff
LemmyNet:report_views_additional_fields
LemmyNet:purge_content_delete_federation
LemmyNet:post_link_alt_text
LemmyNet:remove_show_scores_column
LemmyNet:vote_display_mode
LemmyNet:saved_selection_1
LemmyNet:view_report_history_for_a_comment_or_post
LemmyNet:view_mod_history_for_a_comment_or_post
LemmyNet:content_removal_remote_users
LemmyNet:add_nlnet_grant
LemmyNet:hide_posts
LemmyNet:fix_html_doctype_check
LemmyNet:clippy_fixes_2
LemmyNet:default_comment_sort
LemmyNet:default_instance_sort_type
LemmyNet:custom_thumbnails
LemmyNet:auto_resolve_reports_1
LemmyNet:clear_old_denied_users
LemmyNet:add_pm_instance_blocks
LemmyNet:remove_front_end_size
LemmyNet:postgres_16_upgrade
LemmyNet:remove_ansible_tagging
LemmyNet:convert-pm
LemmyNet:url-wrapper
LemmyNet:apub-inbox-lib
LemmyNet:split-apub-crate
LemmyNet:split-api-crate
LemmyNet:federated-moderation
LemmyNet:insert-local-announce
LemmyNet:nutomic-patch-1
LemmyNet:config-env
LemmyNet:context-remove-category
LemmyNet:update-test-script
LemmyNet:clippy-unwrap
LemmyNet:upgrade-rust
LemmyNet:rename-structs
LemmyNet:remove-backwards-compatibility
LemmyNet:remove-apub-compat-code
LemmyNet:remove-integration-tests
LemmyNet:remove-categories
LemmyNet:apub-type-safety
LemmyNet:no-community-in-comment-to
LemmyNet:try_hjson_deser_nutomic
LemmyNet:apub-post-name
LemmyNet:fix-clippy
LemmyNet:outbox-order-published
LemmyNet:outbox-order
LemmyNet:hide-followed
LemmyNet:comments-posts-public
LemmyNet:move-routes
LemmyNet:log-ids
LemmyNet:optional-apub-extensions
LemmyNet:apub-endpoints-in-db
LemmyNet:fetch-limit
LemmyNet:outbox-activities
LemmyNet:crates-folder
LemmyNet:move_views_to_diesel
LemmyNet:fix-1325
LemmyNet:compilation-benchmark
LemmyNet:debug-false
LemmyNet:mdbook-xss
LemmyNet:actor-inbox
LemmyNet:inbox-headers
LemmyNet:more-docs
LemmyNet:federation-docs
LemmyNet:remove-logging-1283
LemmyNet:inbox-not-local
LemmyNet:debug-1283
LemmyNet:delete-account
LemmyNet:federated-user-delete
LemmyNet:apub-context
LemmyNet:apub-media-type2
LemmyNet:apub-media-type
LemmyNet:remove-clap2
LemmyNet:remove-clap
LemmyNet:split-fetcher-methods
LemmyNet:valid-rss
LemmyNet:user-outbox
LemmyNet:community-name-local
LemmyNet:inbox-deduplicate-handling
LemmyNet:reduce-visibility
LemmyNet:user-inbox-check
LemmyNet:pending-follow
LemmyNet:rewrite-inbox
LemmyNet:enforce-post-lock
LemmyNet:federated-bans
LemmyNet:activity-table-changes
LemmyNet:community-deletion-federate
LemmyNet:dont-email-banned-user
LemmyNet:community-activities-docs
LemmyNet:comment-parent-cc
LemmyNet:docker-sccache
LemmyNet:lemmy-lite
LemmyNet:activity-checks
LemmyNet:lemmy-config-use-tls
LemmyNet:request-limit
LemmyNet:disallow-localhost-urls
LemmyNet:inbox-refactoring-2
LemmyNet:json-headers
LemmyNet:verify-activity-domains
LemmyNet:delete-with-id
LemmyNet:apub-changes
LemmyNet:update-lemmy-ui
LemmyNet:no-send-blocked-dess
LemmyNet:read-only-local
LemmyNet:remove-hardcoded-https-dess
LemmyNet:no-send-blocked
LemmyNet:remove-hardcoded-https
LemmyNet:more_overwriteable_fields
LemmyNet:upgrade_api_test_deps
LemmyNet:dont-federate-embeds
LemmyNet:fix_ansible
LemmyNet:fix-federation-nginx
LemmyNet:move-websocket-to-workspace
LemmyNet:linked_instances_2
LemmyNet:fix_nginx_docs
LemmyNet:sanitize-data
LemmyNet:integration-test
LemmyNet:fix_remote_subscribe
LemmyNet:add_openssl
LemmyNet:published_user_time
LemmyNet:more-tests
LemmyNet:update-deps
LemmyNet:more-refactoring
LemmyNet:isomorphic_docker
LemmyNet:add_api_test_fields
LemmyNet:isomorphic_ui_to_ui
LemmyNet:fix-url-federation
LemmyNet:refactor-utils
LemmyNet:activity-columns
LemmyNet:remove-brotli
LemmyNet:join_messages
LemmyNet:community_name_fetching
LemmyNet:refactor-imports
LemmyNet:structs_separate
LemmyNet:fix_docker_caching
LemmyNet:local_timeline
LemmyNet:create-workspaces
LemmyNet:remove-wildcard-imports
LemmyNet:update-docker-federation
LemmyNet:refactor-websocket
LemmyNet:activity-sender
LemmyNet:unique_ap_ids
LemmyNet:fix_ws_context
LemmyNet:use_lemmy_api
LemmyNet:more_apub_tests
LemmyNet:remove-crud-delete-tests
LemmyNet:revert_dockerfiles
LemmyNet:remove_user_content
LemmyNet:leave_mod_team
LemmyNet:community_search_fix
LemmyNet:fix_crosspost_url
LemmyNet:remove_some_unwraps
LemmyNet:create_dupe_fix
LemmyNet:instance-blocklist
LemmyNet:post_browser_notif
LemmyNet:undo-dislike
LemmyNet:fix-todos
LemmyNet:remove-dead-code
LemmyNet:no_oper
LemmyNet:preferred_username_regex
LemmyNet:fix_online_counts
LemmyNet:libre_js_license
LemmyNet:linked_instances_page
LemmyNet:apub-remove-unwrap
LemmyNet:pictrs-disable-rate-limiting
LemmyNet:remove_make_mod_or_admin_for_federated_users
LemmyNet:apub_security_checks
LemmyNet:federation-authorisation
LemmyNet:pictrs-proxy
LemmyNet:setup_preferred_username
LemmyNet:add_bio_federation
LemmyNet:federation_tests_reorg
LemmyNet:more-inbox-permissions
LemmyNet:updated_cargo_lock
LemmyNet:front_end_prettying
LemmyNet:add_domain_name_change_to_docs
LemmyNet:inbox-refactoring
LemmyNet:inbox-refactoring-dessalines
LemmyNet:captcha_setup
LemmyNet:enforce_nightly_rustfmt
LemmyNet:inbox-refactoring-merge
LemmyNet:post_thumbnail_url_fixes
LemmyNet:page_titles
LemmyNet:federate-sticky-flag-dessalines
LemmyNet:remove_extra_jwt_claims
LemmyNet:admin-settings-fix
LemmyNet:upgrade_front_deps_1
LemmyNet:travis_docker_testing
LemmyNet:sticky_locked_federation_tests
LemmyNet:add_clients_to_readme
LemmyNet:fix_config_location
LemmyNet:api_edit_separation
LemmyNet:comment_form_id
LemmyNet:add_version_to_getsite
LemmyNet:community_user_actor_id_dupes
LemmyNet:more-upgrade-apub-3
LemmyNet:user_loading_indicator
LemmyNet:expanded_bug
LemmyNet:more-upgrade-apub-2
LemmyNet:markdown_buttons
LemmyNet:more-upgrade-apub
LemmyNet:getsite_fixes
LemmyNet:community_name_dupe_quickfix
LemmyNet:no_community_renaming
LemmyNet:master_to_main
LemmyNet:master
LemmyNet:forgot_password_fixes
LemmyNet:fix_security_mentions
LemmyNet:alternate_config_location
LemmyNet:fix-migrate-apub-lib
LemmyNet:docker_workspace_caching
LemmyNet:move_recent_comments
LemmyNet:comment-box-focus
LemmyNet:add_community_name_get_posts
LemmyNet:admin_sort_order
LemmyNet:remove_selectr_for_choices
LemmyNet:hide_next_prev
LemmyNet:front_end_redirects
LemmyNet:remove_twemoji
LemmyNet:remove_button_for_avatars
LemmyNet:sidebar_contributers
LemmyNet:quoted_text
LemmyNet:page_refresh_block
LemmyNet:migrate-apub-lib
LemmyNet:html_titles
LemmyNet:remove_materialized_views_5
LemmyNet:improve-council-rules
LemmyNet:jolt_to_dogbin_iframely
LemmyNet:federation_docs
LemmyNet:rate_limit_logging
LemmyNet:more_slurs
LemmyNet:federation
LemmyNet:jolt_iframely
LemmyNet:remove_materialized_views_2
LemmyNet:council_admin_add
LemmyNet:adding_ansible_comment_line
LemmyNet:federation_fixes_1
LemmyNet:federation_merge_from_master_2
LemmyNet:attohttpc_federation_merge_from_master
LemmyNet:iav-arm-musl-dessalines
LemmyNet:use-pictrs-1
LemmyNet:inbox-permissions
LemmyNet:federate-stickied
LemmyNet:community-description-fix
LemmyNet:rename-blacklist
LemmyNet:pictrs-migration
LemmyNet:build-optimizations-dessalines
LemmyNet:build-optimizations
LemmyNet:dev
LemmyNet:local-dev-docs
LemmyNet:use-attohttpc
LemmyNet:fetch_in_reply_to
LemmyNet:test-workspace
LemmyNet:merge-master
LemmyNet:use-pictrs
LemmyNet:drop-pictshare
LemmyNet:pictshare-backdoor
LemmyNet:limit-memory
LemmyNet:activitystreams-new
LemmyNet:gzip-svg
LemmyNet:cache-control
LemmyNet:announce-posts
LemmyNet:validate_register_usernames
LemmyNet:remove_federation_option_master
LemmyNet:activitystreams-ext
LemmyNet:rework-imports
LemmyNet:yerba_rework-imports
LemmyNet:federated_embeds
LemmyNet:federated_thumbnails
LemmyNet:federated_mentions
LemmyNet:yerba_refactoring
LemmyNet:refactoring
LemmyNet:comment-search
LemmyNet:yerba_comment-search
LemmyNet:fix_pictshare_image_caching
LemmyNet:fix_password_autocomplete_fields
LemmyNet:AndreVallestero-thumbnail-outsourced
LemmyNet:StaticallyTypedRice-patch-4
LemmyNet:yerba_announce-posts
LemmyNet:federated_private_messages
LemmyNet:group-extension
LemmyNet:yerba_group_extension
LemmyNet:page-extension
LemmyNet:yerba_page_extension
LemmyNet:federated_unfollow
LemmyNet:federated_unlike
LemmyNet:federated_remove_actions
LemmyNet:undo_delete_community
LemmyNet:delete-community_1
LemmyNet:delete-community
LemmyNet:shorthand_apub_id_searching
LemmyNet:add_federated_post_likes
LemmyNet:add_activity_table
LemmyNet:shared_inbox_1
LemmyNet:nyu-ossd-s20-link_images
LemmyNet:federation_changes_1
LemmyNet:api_tests
LemmyNet:merge_master_2
LemmyNet:routes_web_block
LemmyNet:test
LemmyNet:federation_merge_from_master_1
LemmyNet:remove_username_lower_unique
LemmyNet:nutomic-federation
LemmyNet:abstract_websocket_sends
LemmyNet:asonix-abstract_websocket_sends
LemmyNet:sync_actor_2
LemmyNet:sync_actor
LemmyNet:nyu-ossd-s20-apache_benchmark_check
LemmyNet:federation_update_apub_views
LemmyNet:admin_settings
LemmyNet:emoji_picker
LemmyNet:add_open_collective
LemmyNet:nutomic-inbox-routes
LemmyNet:federation_add_fed_columns
LemmyNet:yerba_master
LemmyNet:nutomic-auto-setup
LemmyNet:nutomic-rss-improvements
LemmyNet:nutomic-federation-dev-docs
LemmyNet:dependabot/npm_and_yarn/ui/acorn-5.7.4
LemmyNet:logging
LemmyNet:nutomic-error-logging
LemmyNet:nutomic-multiple-instances
LemmyNet:docker-volumes-in-subfolder
LemmyNet:post_iframely_columns
LemmyNet:icons
LemmyNet:BoFFire-patch-1
LemmyNet:comment_actions_expand
LemmyNet:proper-i18next
LemmyNet:thumbnails_3
LemmyNet:thumbnails_2
LemmyNet:link_overlay
LemmyNet:AndreVallestero-master
LemmyNet:iframely
LemmyNet:fuse_ts
LemmyNet:select_search
LemmyNet:unread_counts_2
LemmyNet:unread_counts
LemmyNet:instant_voting
LemmyNet:tech_debt
LemmyNet:newest_comment_time
LemmyNet:comment_view_type
LemmyNet:StaticallyTypedRice-minor_changes
LemmyNet:rate_limit_fixes
LemmyNet:post_title_length
LemmyNet:nyex-pt_trans
LemmyNet:dev_1
LemmyNet:StaticallyTypedRice-StaticallyTypedRice-webclient
LemmyNet:websocket_reconnect_reload
LemmyNet:dupe_posts
LemmyNet:nutomic-integrated-email
LemmyNet:dont_show_deleted
LemmyNet:websocket_scopes
LemmyNet:richardj-feature/frontend-a11y
LemmyNet:websocket_reconnecting
LemmyNet:case_insensitives
LemmyNet:more_themes
LemmyNet:StaticallyTypedRice-StaticallyTypedRice-minor-changes
LemmyNet:richardj-language/dutch-language-update-2
LemmyNet:nutomic-ansible
LemmyNet:nutomic-api-benchmark
LemmyNet:StaticallyTypedRice-StaticallyTypedRice-documentation
LemmyNet:ahangarha-PersianTranslation
LemmyNet:more_mviews
LemmyNet:DeeUnderscore-comment-sort-asc
LemmyNet:paste_images
LemmyNet:DeeUnderscore-doc/db-env-variable
LemmyNet:TheDavidDelta-master
LemmyNet:Rynach-patch-1
LemmyNet:StaticallyTypedRice-master
LemmyNet:dessalines-http-api
LemmyNet:toasts
LemmyNet:private_messaging
LemmyNet:inbox_user_page_functions
LemmyNet:nsfw_blur
LemmyNet:new-comments-posts-problem
LemmyNet:translation_report_husky
LemmyNet:richardj-feature/frontend-usability-features
LemmyNet:nutomic-ws-generics
LemmyNet:nodeinfo-objects
LemmyNet:harder_lint
LemmyNet:nutomic-http-api
LemmyNet:Nutomic-code-of-conduct
LemmyNet:thebinarymutant-ui-fix
LemmyNet:proxy-pictshare
LemmyNet:materialized_views
LemmyNet:test_mat_mer
LemmyNet:r2d2_actix_pooling
LemmyNet:actix-2.0
LemmyNet:db_indexes
LemmyNet:isomorphic_test
LemmyNet:faster-docker-build
LemmyNet:hide_avatars
LemmyNet:lint
LemmyNet:admin_buttons
LemmyNet:Nutomic-mdbook
LemmyNet:Nutomic-actix-config
LemmyNet:avatar
LemmyNet:fix-372
LemmyNet:fix-372-1
LemmyNet:Nutomic-teromene-apub
LemmyNet:nutomic_config
LemmyNet:nutomic/lemmy_config
LemmyNet:site_customs
LemmyNet:teromene-maybeoptional
LemmyNet:custom_lang
LemmyNet:config_dif_addr_merge
LemmyNet:teromene-config_dif_addr
LemmyNet:feeds_2
LemmyNet:Nutomic-feeds
LemmyNet:Nutomic-nodeinfo
LemmyNet:git_bug
LemmyNet:hotload_css
LemmyNet:email
LemmyNet:iav-cross
LemmyNet:MatteoGgl-master
LemmyNet:user_default_sorts
LemmyNet:sort_components
LemmyNet:andrewbanchich-master
LemmyNet:username_mentions
LemmyNet:husky_cargo
LemmyNet:removed_dev_2
LemmyNet:lint_2
LemmyNet:zacanger-chore/eslint
LemmyNet:test_lint
LemmyNet:test_lint_2
LemmyNet:zacanger-chore/lint
LemmyNet:zacanger-chore/url
LemmyNet:AutomCoding-master
LemmyNet:Nutomic-local-bind
LemmyNet:perma_delete
LemmyNet:moar_themes
LemmyNet:remove_comments_user_page
LemmyNet:auto_fetch_new_posts
LemmyNet:externalize_rate_limits
LemmyNet:html5_video
LemmyNet:zacanger-feat/k8s
LemmyNet:online_users
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 521cd55913 - Show all commits
|
@ -23,7 +23,8 @@ steps:
|
|||
- name: cargo clippy
|
||||
image: ekidd/rust-musl-builder:1.47.0
|
||||
commands:
|
||||
- cargo clippy --workspace --tests --all-targets --all-features -- -D warnings
|
||||
- cargo clippy --workspace --tests --all-targets --all-features -- \
|
||||
-D warnings -D deprecated -D clippy::perf -D clippy::complexity -D clippy::dbg_macro
|
||||
|
||||
- name: check documentation build
|
||||
image: ekidd/rust-musl-builder:1.47.0
|
||||
|
|
|
@ -33,7 +33,7 @@ pub async fn get_apub_user_http(
|
|||
User_::find_by_email_or_username(conn, &user_name)
|
||||
})
|
||||
.await??;
|
||||
dbg!(&user.deleted);
|
||||
|
||||
if !user.deleted {
|
||||
let apub = user.to_apub(context.pool()).await?;
|
||||
|
||||
|
|
Write
Preview
Loading…
Reference in New Issue