Skip to content
This repository was archived by the owner on Oct 12, 2025. It is now read-only.

[Core] Fixed the problem that AtEntity after ForwardEntity was not filtered#816

Merged
DarkRRb merged 2 commits intomasterfrom
darkrrb/fix/Fixed-the-problem-that-AtEntity-after-ForwardEntity-was-not-filtered
Apr 27, 2025
Merged

[Core] Fixed the problem that AtEntity after ForwardEntity was not filtered#816
DarkRRb merged 2 commits intomasterfrom
darkrrb/fix/Fixed-the-problem-that-AtEntity-after-ForwardEntity-was-not-filtered

Conversation

@DarkRRb
Copy link
Collaborator

@DarkRRb DarkRRb commented Apr 27, 2025

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses a bug where an AtEntity following a ForwardEntity was not being properly filtered.

  • Added logic to set the Uin value from a sliced attribute buffer when it is initially 0.
  • Included a comment that appears unprofessional in the new code.

MentionExtra info = Serializer.Deserialize<MentionExtra>(extra.AsSpan());
if (info.Type != 2) return null;

// shit!
Copy link

Copilot AI Apr 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The comment contains unprofessional language; consider removing or replacing it with a descriptive comment that explains the purpose of the code change.

Suggested change
// shit!
// If Uin is 0, attempt to extract it from Attr6Buf (if its length is greater than 11).

Copilot uses AI. Check for mistakes.
…he-problem-that-AtEntity-after-ForwardEntity-was-not-filtered
@DarkRRb DarkRRb merged commit 8681bf0 into master Apr 27, 2025
8 checks passed
@DarkRRb DarkRRb deleted the darkrrb/fix/Fixed-the-problem-that-AtEntity-after-ForwardEntity-was-not-filtered branch April 27, 2025 08:06
@DarkRRb DarkRRb linked an issue Apr 29, 2025 that may be closed by this pull request
4 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug?]: at某个用户被解析为了at all

2 participants