remove useless api link in launchpad bug output

This commit is contained in:
Nils Büchner 2024-04-01 22:26:14 +02:00
parent cecdd9b464
commit 65388c5d09

View file

@ -105,8 +105,9 @@ class Ubottu(Plugin):
if self.flood_protection.flood_check_bug(bug_id) and self.flood_protection.flood_check(evt.sender):
data = await self.lookup_launchpad_bug(bug_id)
if data:
package = ''
if data['package'] != '':
package = ' in ' + '[' + data['package'] + '](' + data['target_link'] + ')'
package = ' in ' + data['package']
msg = f"Launchpad Bug [#{data['id']}]({data['link']}){package} \"{data['title']}\" [{data['importance']}, {data['status']}]"
await evt.respond(msg)
return True