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

Conversation

@SamSaffron
Copy link
Member

  1. Add age of post to topic context (1 month ago, 1 year ago, etc)
  2. Refactor code for simplicity
  3. Fix handling of post context in DMs which was not using new handling of uploads

1. Add age of post to topic context (1 month ago, 1 year ago, etc)
2. Refactor code for simplicity
3. Fix handling of post context in DMs which was not using new handling of uploads
prepend_chat_post_context(result) if style == :chat_with_context

if limit
result[0..limit]
Copy link
Contributor

Choose a reason for hiding this comment

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

This is probably a loose limit, but 0...5 gives u 6 items.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch will fix in a follow up

"#{user.username} (#{user.name}): #{info.compact.join(", ")}"
end

def format_timestamp(timestamp)
Copy link
Contributor

Choose a reason for hiding this comment

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

Wow this totally looks like def format_user_info(user) 😅

@SamSaffron SamSaffron merged commit 38b4925 into main Apr 14, 2025
6 checks passed
@SamSaffron SamSaffron deleted the context_part_2 branch April 14, 2025 11:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants