Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 12604f1

Browse files
committed
Merge pull request #406 from OpenBazaar/email-fixes
Correct the data in follow email
2 parents c760c6e + 459a4f5 commit 12604f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

market/protocol.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,10 @@ def rpc_follow(self, sender, proto, signature):
161161

162162
# Send SMTP notification
163163
notification = SMTPNotification(self.db)
164-
notification.send("[OpenBazaar] %s is now following you!" % m.name,
164+
notification.send("[OpenBazaar] %s is now following you!" % f.metadata.name,
165165
"You have a new follower:<br><br>Name: %s<br>GUID: <a href=\"ob://%s\">%s</a><br>"
166166
"Handle: %s" %
167-
(m.name, f.guid.encode('hex'), f.guid.encode('hex'), m.handle))
167+
(f.metadata.name, f.guid.encode('hex'), f.guid.encode('hex'), f.metadata.handle))
168168

169169
return ["True", m.SerializeToString(), self.signing_key.sign(m.SerializeToString())[:64]]
170170
except Exception:

0 commit comments

Comments
 (0)