@@ -120,6 +120,26 @@ def test_audiences_table_unread_links_ignore_content_rows():
120120 <td class="rowfollow" nowrap=""><span title="2026-05-07 23:01:58">8天17时前</span></td>
121121 <td class="rowfollow"><input class="checkbox" type="checkbox" name="messages[]" value="4318000"></td>
122122 </tr>
123+ <tr>
124+ <td class="rowfollow" align="center">
125+ <img class="readpm" src="pic/trans.gif" title="已读">
126+ </td>
127+ <td class="rowfollow" align="left">
128+ <a href="messages.php?action=viewmessage&id=4317999">无英文 alt 的已读消息</a>
129+ </td>
130+ <td class="rowfollow" align="left">系统</td>
131+ <td class="rowfollow" nowrap=""><span title="2026-05-07 23:01:58">8天17时前</span></td>
132+ <td class="rowfollow"><input class="checkbox" type="checkbox" name="messages[]" value="4317999"></td>
133+ </tr>
134+ <tr>
135+ <td class="rowfollow" align="center"></td>
136+ <td class="rowfollow" align="left">
137+ <a href="messages.php?action=viewmessage&id=4317998">无状态图标消息</a>
138+ </td>
139+ <td class="rowfollow" align="left">系统</td>
140+ <td class="rowfollow" nowrap=""><span title="2026-05-07 23:01:58">8天17时前</span></td>
141+ <td class="rowfollow"><input class="checkbox" type="checkbox" name="messages[]" value="4317998"></td>
142+ </tr>
123143 </table>
124144 </body>
125145 </html>
@@ -130,3 +150,34 @@ def test_audiences_table_unread_links_ignore_content_rows():
130150
131151 assert msg_links == ["messages.php?action=viewmessage&id=4318225" ]
132152 assert next_page is None
153+
154+
155+ def test_audiences_readpm_row_is_not_unread_message ():
156+ parser = NexusAudiencesSiteUserInfo (
157+ site_name = "Audiences" ,
158+ url = "https://audiences.me/" ,
159+ site_cookie = "" ,
160+ apikey = None ,
161+ token = None ,
162+ )
163+ html_text = """
164+ <html>
165+ <body>
166+ <table>
167+ <tr>
168+ <td class="rowfollow" align="center">
169+ <img class="readpm" src="pic/trans.gif" alt="Read" title="已读">
170+ </td>
171+ <td class="rowfollow" align="left">
172+ <a href="messages.php?action=viewmessage&id=4318000">已读消息</a>
173+ </td>
174+ </tr>
175+ </table>
176+ </body>
177+ </html>
178+ """
179+ msg_links = []
180+
181+ parser ._parse_message_unread_links (html_text , msg_links )
182+
183+ assert msg_links == []
0 commit comments