瀏覽代碼

chore(config): remove show_attachment_links field

Attachments now always show as clickable filename hyperlinks (OSC 8),
making this toggle redundant. Existing config files with the field
are unaffected — the TOML parser silently ignores unknown keys.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
claude 1 月之前
父節點
當前提交
ace2ca90d8
共有 2 個文件被更改,包括 1 次插入3 次删除
  1. 1 2
      internal/config/config.go
  2. 0 1
      internal/config/config.toml

+ 1 - 2
internal/config/config.go

@@ -93,8 +93,7 @@ type (
 		Editor    string `toml:"editor"`
 
 		Status              discord.Status `toml:"status"`
-		HideBlockedUsers    bool           `toml:"hide_blocked_users"`
-		ShowAttachmentLinks bool           `toml:"show_attachment_links"`
+		HideBlockedUsers bool `toml:"hide_blocked_users"`
 		ImageViewer     string   `toml:"image_viewer"`
 		ImageViewerArgs []string `toml:"image_viewer_args"`
 		ImageSaveDir    string   `toml:"image_save_dir"`

+ 0 - 1
internal/config/config.toml

@@ -16,7 +16,6 @@ editor = "default"
 status = "default"
 
 hide_blocked_users = true
-show_attachment_links = true
 
 # Program used to view image attachments. Must accept a file path as its
 # first argument. Set to "default" to use xdg-open / open.