bartervg / barter.vg

Track and hold discussion on Barter.vg bugs, enhancements, and other issues
https://barter.vg
MIT License
20 stars 4 forks source link

If the feed received a variable over 64 character, it silently fails #261

Closed bartervg closed 1 year ago

bartervg commented 3 years ago

Describe the bug

Long titles or title + platform combinations that exceed 64 characters will not appear on the feed. Even if under 64 characters, the information is cut off. image

Steps to reproduce the bug

  1. Find a title over 64 characters, such as https://barter.vg/i/108271/
  2. Do an activity that would be tracked on the feed and include the title, such as a giveaway
  3. Notice that the activity does not appear

Expected behavior

The feed should handle long titles either by truncating them and/or increasing the maximum character limit. Either solution would be preferable to nothing appearing.

Additional context, device information (OS & Browser) if applicable

First report https://discord.com/channels/329829406153375755/438406560222281738/824689547534139413 Second report https://discord.com/channels/329829406153375755/329829406153375755/830607844238688276

bartervg commented 1 year ago

image

if(strlen($text) > 60){ $text = substr($text, 0, 60).'...'; }