diff --git a/common/relations.go b/common/relations.go
index 631969d0..c770f66b 100644
--- a/common/relations.go
+++ b/common/relations.go
@@ -32,7 +32,8 @@ func (s *DefaultBlockStore) IsBlockedBy(blocker, blockee int) (bool, error) {
}
func (s *DefaultBlockStore) Add(blocker, blockee int) error {
- return nil
+ _, err := s.add.Exec(blocker, blockee)
+ return err
}
type FriendInvite struct {
@@ -64,11 +65,15 @@ func NewDefaultFriendStore(acc *qgen.Accumulator) (*DefaultFriendStore, error) {
}
func (s *DefaultFriendStore) AddInvite(requester, target int) error {
- return nil
+ _, err := s.addInvite.Exec(requester, target)
+ return err
}
+
func (s *DefaultFriendStore) Confirm(requester, target int) error {
- return nil
+ _, err := s.confirm.Exec(requester, target)
+ return err
}
+
func (s *DefaultFriendStore) GetOwnSentInvites(uid int) ([]FriendInvite, error) {
return nil, nil
}
diff --git a/parser_test.go b/parser_test.go
index 747bc38e..9015f4fe 100644
--- a/parser_test.go
+++ b/parser_test.go
@@ -202,6 +202,8 @@ func TestParser(t *testing.T) {
l.Add("//"+url+"\n//"+url, eurl+"
"+eurl)
l.Add("//"+url+"\n\n//"+url, eurl+"
"+eurl)
+ pre2 := c.Site.EnableSsl
+ c.Site.EnableSsl = true
local := func(u string) {
s := "//" + c.Site.URL
fs := "http://" + c.Site.URL
@@ -288,8 +290,6 @@ func TestParser(t *testing.T) {
l.Add("@-1", "