Files
wwdpublic/Content.Shared/MassMedia/Systems/SharedNewsSystem.cs
Skubman 1555ca32f1 Increase Title/Content Text Limits For News Articles (#1447)
# Description

Increases the text limit for news reports:
- Title character limit: 25 -> 50
- Content character limit: 2048 -> 2560

Mostly a personal change for me because I often run into the title
character limits when I was playing Reporter.

## Media

![image](https://github.com/user-attachments/assets/121b29d3-af42-474d-bb04-a438dbab74c3)

![image](https://github.com/user-attachments/assets/5fd71407-a641-4dcc-8913-d0515ca7598c)

![image](https://github.com/user-attachments/assets/079142f8-5f39-4d91-b914-c1327bf4f0bb)

## Changelog

🆑 Skubman
- tweak: The news article title character limit has been increased from
25 to 50 characters, and news content from 2048 to 2560 characters.

(cherry picked from commit f80f954f817871ada084518e79b1832c0c5db2d9)
2025-01-14 01:44:43 +03:00

35 lines
777 B
C#

using Robust.Shared.Serialization;
namespace Content.Shared.MassMedia.Systems;
public abstract class SharedNewsSystem : EntitySystem
{
public const int MaxTitleLength = 50;
public const int MaxContentLength = 2560;
}
[Serializable, NetSerializable]
public struct NewsArticle
{
[ViewVariables(VVAccess.ReadWrite)]
public string Title;
[ViewVariables(VVAccess.ReadWrite)]
public string Content;
[ViewVariables(VVAccess.ReadWrite)]
public string? Author;
[ViewVariables]
public ICollection<(NetEntity, uint)>? AuthorStationRecordKeyIds;
[ViewVariables]
public TimeSpan ShareTime;
}
[ByRefEvent]
public record struct NewsArticlePublishedEvent(NewsArticle Article);
[ByRefEvent]
public record struct NewsArticleDeletedEvent;