Pinkie knew Applejack’s mother, Sweet Blossom (and by extension, Applejack), because she would work there at the bakery often with Chiffon Swirl, helping her make apple themed treats. she was very upset when she learned that the sweet mare had died, and mourned with Applejack at the farm. she, along with (the now married) Mrs. Cup Cake and Mr. Cake were invited to the private funeral for Sweet Blossom, and Applejack and Pinkie Pie have been friends ever since.
at some point, Maud and her siblings visited Ponyville from their rock farm home, and although most of the Quartz family didn’t really like Pinkie because she was too loud and obnoxious, Maud ended up becoming very close to Pinkie, and the two would send each other letters and rock candy necklaces (and still do to this day).